Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to direct Escape and X (close) icon to a routine?
Message
 
To
21/08/1998 15:07:39
Koos Veel
Gamma Research
Aruba
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00128888
Message ID:
00128911
Views:
26
>Hello,
>
>We are using Visual FoxPro 5.0b. At the moment we are creating messageboxes for our framework. We would like to know how we can redirect a ESCAPE keypress and a press on the X (close) icon to a specific routine or redirect it to the same routine of another icon on the messagebox form?
>
>Thanks in advance for your help!
>
>Greetings,
>Michiel Willems
>Using the account of Koos Veel

THe "X" in the upper-right corner calls the QueryUnload event. You can add code there to do anything you want. I'm not sure about ESC, but you can always put a check on ESC in the form keypress code.
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform