Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to direct Escape and X (close) icon to a routine?
Message
 
À
21/08/1998 15:07:39
Koos Veel
Gamma Research
Aruba
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00128888
Message ID:
00128981
Vues:
31
>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

Michiel,

The X and the Close menu option both fire the form's QueryUnload event. For the esacep key I make the Exit button have Cancel = .T., that makes that button the escape button and its click will fire whenever the escape key is pressed.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform