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 16:38:46
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00211650
Message ID:
00211742
Views:
23
>>>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. :-)
>
>One thing I thought after sending the message; I think that if ActiveControl is a grid, then this trick doesn't work. What I do in those cases is to SetFocus to another control (or column of the same grid) and SetFocus back where the user was. Perhaps a little experimentation with that case is in order...

Thanks for the tip.

One thing I found out was that _screen.activeform.activecontrol gives an error if there is no active control. I was able to accomodate for this in my error handler though.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform