How do I determine, which of the existing gadgets currently has the focus?
Thanks for any help! merendo
How to determine which gadget currently has the focus?
try the following code (uses API calls)
id will be set to the ID of the window or gadget that has the focus, which seems work ok in my tests.
Code: Select all
id.l=GetWindowLong_(GetFocus_(),#GWL_ID)

