Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Escaping
Message
From
25/08/1998 23:28:02
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00129896
Message ID:
00129927
Views:
17
And remember to set Form.KeyPreview = .T.

>You can trap the ESC key in the form's keypress event:
>
>if nKeyCode = 27
>    nodefault
>    thisform.release
>endif
>
>>I have a nice application that requires the user to use the close form button to close down any open form. I tie the escape key to the cancel button. Now they want to have the Escape key leave the form if the cancel key is deactivated.
>>
>>I'm trying to use ON ESCAPE but it does not seem to fire if the user is on a pageframe. Any ideas how to do this?
>>
>>Thanks
>>
>>John Brooks
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform