Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Push Buttons..
Message
De
22/12/1999 17:40:22
 
 
À
22/12/1999 17:23:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00307625
Message ID:
00307634
Vues:
15
>I have a push button that is calling two other push buttons and disabling itself. The Click event is below. How can I give the user the ability to simply press the Esc key and enable all calling push button along with the others I am enabling...
>
>Click Event
>
>this.enabled = .f.
>with thisform
> .BTN_ANNUALS.enabled = .f.
> .BTN_REFUSAL.enabled = .f.
> .BTN_MORTALS.enabled = .f.
> .BTN_REPORTS.enabled = .f.
> .Btn_EnterReg.VISIBLE = .T.
> .Btn_EditReg.VISIBLE = .T.
> .Btn_EnterReg.SetFocus
>endwith
>
>TIA
>
>Jeff T.

Easiest/ cleanest way to do this is put another button on the form (you can move it out of sight if you wish) and set its Cancel property to .T.. Then in its click method, put code to enable your buttons.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform