Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How does one prevent a form from being deactivated?
Message
From
05/10/2003 10:36:21
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00834295
Message ID:
00835221
Views:
13
David,

You are of course right. I came to the same conclusion and implemented it as you suggest.

>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.
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Previous
Reply
Map
View

Click here to load this message in the networking platform