Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get focus off grid during form deactivate?
Message
From
22/11/2008 16:39:11
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01363424
Message ID:
01363676
Views:
20
This message has been marked as the solution to the initial question of the thread.
Yahoo! I have to share my discovery!
If you have an issue like I had where VFP is updating non-sparse grid columns in forms that are NOT currently active, then just add this code in the form.activate(). For some reason, this makes VFP behave.
DOEVENTS
?? ""
RETURN DODEFAULT()
Note, the symptom of this issue is if you drag another form over the form with the non-sparse grid, and you see the underlying non-sparse grid column flashing (then most likely VFP is updating the controls in each row over and over). Or if you see a rapidly flashing cursor and your cpu cycles are getting eaten up.

-Mark

>Mark,
>
>Grids are particularly nasty about repulling focus. You may be able reset focus to a more benign control like a cmd on the original form before you launch the child form. Glad you got it working.
>
Previous
Reply
Map
View

Click here to load this message in the networking platform