Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where is the escape controlling the form queryunload?
Message
De
02/12/2003 02:42:18
 
 
À
02/12/2003 02:09:21
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00854871
Message ID:
00854923
Vues:
24
>I somehow think that this was once better documented in the help than it is now. It says that if ESC is pressed, a button with .cancel=.t. will receive a click event. Lastkey() will of course be 27.
>
>What I can't find is that it should also work backwards, i.e. a mouse click on such button should also set lastkey() to return 27. I have too many things open at the moment to try this, but I seem to remember that testing for lastkey()=27 was sufficient if there was a cancel button on the form. If the test returned .t., the user initiated close form. Don't remember if QueryUnload was also affected with this, i.e. whether clicking the close box also set lastkey() to 27.

Ok, thanks, I'll continue my research tomorrow and will try to find where this is coming from.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform