Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement