Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capturing a Mouse Click on a from's Close Button
Message
From
24/04/2008 08:32:24
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Capturing a Mouse Click on a from's Close Button
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Miscellaneous
Thread ID:
01312832
Message ID:
01312832
Views:
63
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.

Is this doable?

Thanks,
Robert Wright
Next
Reply
Map
View

Click here to load this message in the networking platform