Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capturing a Mouse Click on a from's Close Button
Message
 
 
To
24/04/2008 08:32:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Miscellaneous
Thread ID:
01312832
Message ID:
01312833
Views:
16
It triggers QueryUnload() event. See also the ReleaseType property.
Execute NODEFAULT to preven in it form closing.

>When using a form in VFP9, I want to capture the "mouse click" on the red "X" close button and do some testing before I allow the user to close the form.
>
>If certain things have not been done I want to warn the user that they are exiting (closing) the form without finishing these tasks and give them a "Yes / Cancel" choice. If they click on "Yes" the form would close but if they click on "Cancel" the focus would return to the form and it would not be closed.
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform