Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Escaping
Message
De
25/08/1998 20:27:34
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00129896
Message ID:
00129913
Vues:
27
>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

Thanks Ken, that worked like a charm.

John Brooks
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform