Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Active Control
Message
From
25/08/2008 00:07:01
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
24/08/2008 23:39:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01341431
Message ID:
01341433
Views:
12
>Is there a method to determine if the currently selected control on a Form has focus?
>
>I wish to set focus to a grid in the grid's own refresh method, but ONLY if the grid does not currently have the focus. This.setfocus() in the grid's refresh() makes my code stop working the way that I want it to if the grid already has the focus.
>
>I considered setting a flag internally in the grid to .T. when the grid's "when" event fires as it gets the focus, but I can't find an event to watch for to signal when it has lost the focus.

Maybe put the grid in a container (snugly fit so to be invisible) and then watch for container's .lostfocus()?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform