Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On shutdown doesn't shift focus off field
Message
 
 
To
23/04/1999 14:49:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00211650
Message ID:
00211675
Views:
26
>>I have an "on shutdown" routine that cycles through all forms and attempts to close them. If a form detects uncommitted changes to any data, it prompts the user if they will like to save or discharge them.
>>
>>The problem is that if the user is still in a textbox where changes have made but then they click the upper right "X" (to shutdown the app). The focus isn't taken off the textbox so the buffer doesn't know about the change in the contents of the textbox. How can I shift the focus off the textbox or force the changes into the buffer?
>
>I use _VFP.ActiveForm.ActiveControl.SetFocus, so the current control loses focus to regain it! :-)

Great. That did the trick.

Funny though that setting the focus to the control causes this behaviour. :-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform