Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return to Original Button
Message
From
11/06/2017 16:22:39
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
11/06/2017 12:58:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01651907
Message ID:
01651909
Views:
67
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform