Handle to last focused Widget

Without going through my docs, I could not answer if there is an attribute / property you could use directly. Also you did not specify the Progress version either to be applicable with.
However you could do it the long-hand method.
Define a var handle
DEF VAR vidgetHdl AS HANDLE NO-UNDO.
Then for the triggers use a command to assign the widgetHandle to your VAR.
vWidgetHdl = SELF.
 
Long Hand

Greetings,
WithOut knowing exactly the deployment it is hard to suggest methods / solutions. However you could use any of the long hand methods. A solution / method would be to walk the widget tree. You could use a var to store the name of the widgetupon execution. The walk tthe widget tree to get the handle to that widget, or simply store the handle to that widget upon focus.
 
Back
Top