Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return to Original Button
Message
De
11/06/2017 16:22:39
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
11/06/2017 12:58:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01651907
Message ID:
01651909
Vues:
66
>I am trying to give my users the option to press teh ESC key and return to the calling button .
>
>The base button is Btn_Admin. Once it's pressed, then 2 smaller buttons would appear to the side. If the user chooses to go back, press ESC and then the two other buttons visible properpty set to .f.
>
>Here's my code in the Valid event of one of the (2) sub-buttons called by the Btn_Admin:
>
>IF LASTKEY() = 27
> ThisForm.Btn_UProf.Visible = .F.
> ThisForm.Btn_Utilities.Enabled = .t.
> ThisForm.Btn_QuitApp.Enabled = .T.
> this.Visible = .f.
>
> ThisForm.Btn_Utilities.SetFocus()
> RETURN .t.
>
>ENDIF

The button which reacts to esc needs to have .cancel=.t.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform