Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GotFocus and LostFocus
Message
 
To
17/03/2000 20:36:27
Charles Richard
Nvo Management Systems
Boisbriand, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00347356
Message ID:
00347381
Views:
26
I don't have a good answer for you Charles. The only thing I can think of at the moment is that a control doesn't lose focus if you go to the menu or toolbar. That comes up repeatedly because the valid code for the active control doesn't fire under these circumstances.

Barbara

>Hi Barbara. Thanks for your reply.
>
>The help text in VFP5 is wrong. A VFP5 form gets focus even with enabled controls.
>
>IAC I am working in VFP6. Getfocus also fires upon initial activation (just after activate). In my tests, getfocus fires when the form first appears and is the active form, when I click out to something else which can receive focus then click back in. The lostfocus fires when I click out but not when I close. This behaviour is perfect for me since I don't need to save the environment when I close the form, I only need to save it when I leave the form and restore it when I reenter. Since all forms will have this behaviour, I am assured that the form will retreive it's own settings if required. Except in the (possible) exceptions I am inquiring about.
>
>As far as I can tell, activate and deactivate fire simultaneously with getfocus and lostfocus so I don't see an advantage. There must be a difference but what is it? Wasn't there something about toolbars? (and toolbars opening forms?)
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform