Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus
Message
 
À
02/01/1998 18:03:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00068704
Message ID:
00069046
Vues:
57
>Jim,
>
>This code works if they press the escape key but what if I wanted to let them press the cancel key to exit. Is there a function I can call that will let me know this. I know I could write a function that would check mouse coordinates and return a .T. or .F. based on this but I was hoping for something less *kludgy*
>
>Mark A. Struck
Mark,

If you check the example again I said to set the Cancel proeprty of the cancel button to .T.. Doing this makes clicking the cancel button the same as pressing the escape key. If the user clicks the button LASTKEY() willb e 27 and if they press the escape key the button's click code will run.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform