General information
Category:
Coding, syntax & commands
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.
Bob
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only