how to know which Smobj has the focus

sseguron

New Member
I would like to know if it is possible to determine which smart object has the focus when you are in a smart container containing several visible smart objects (viewers, browsers).

I know the function in 4GL to get the active widget or the widget which has the focus. But I don't know how to go up to the smart object from there.

So, How to determine the active smart object ? function ?

Thanks for your help. :rolleyes: :cool: :cool:
 

Dan Dragut

New Member
Why not make a trigger in your program like this:

ON 'SHIFT-F1':U ANYWHERE
DO:
MESSAGE FOCUS:NAME
VIEW-AS ALERT-BOX INFO BUTTONS OK.
END.

and there you have the widget's name that has the focus by pressing SHIFT-F1 anytime. You can add code to find the parent, his name and so on...

HIH,
Dan
 
Top