Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On esc?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00100175
Message ID:
00104342
Vues:
20
>Thanks for the reply, that's actually what I did
in the end.

I'm going to read a little into your message here... it sounds like you have a form containing a grid. (After all, releasing the browse when the escape key is pressed IS the default behavior.)
>
>If you want the escape key to release a _FORM_, you can either add a cancel button to the form (set button.CANCEL=.t.) or do this:
>
>form.keypreview=.t.
>
>In form's KEYPRESS method, add this code:
>
>IF nKeyCode = 27 && fox will provide this variable as a parameter
> thisform.release
>ENDIF
>
>You don't want ON ESC at all. Ever. Very old. Out-dated. Icky. <g>
>
>>vfp 3.0 win 95
>>
>>I have a browse from that I would like to add
>>ON ESC and have it release the form, everything
>>that I have read tells you to "DO" a function.
>>
>>Is there a way to just have it release the form?
>>
>>Thanks and have a great day!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform