Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How does one prevent a form from being deactivated?
Message
 
 
To
04/10/2003 05:48:11
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00834295
Message ID:
00835116
Views:
18
Peter,

I think your users are going to get real peeved at this sort of interface. One reason for having a multiform interface is to allow the user to go back and forth between forms to get their job done. For example Word doesn't keep asking you to save shanges as you switch from one document to another.

If you are using private datasessions, and buffering it's not very hard to commit or revert their changes when they want to.

>I think I've solved it - just added at messagebox, 'Save changes?' Yes No (if there are any) in the forms Deactivate method. It's not as elegant as I'd hoped for, since the form being activated is on top, but it seems to work. Maybe I should try to put it in the LostFocus method instead.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform