UI Object Focus
Was wondering if anyone had any more information on UI object focus, and what the JBOX_HILITE flag actually does? Are there any methods to deal with UI objects getting or losing focus, or does this have to be determined manually by each individual object?
Hi David,
please look at the uisimp5.c example in the SDK.
This example shows exactly how to deal with getting or losing focus in UI externals.
Basically you need to implement two A_CANT methods "focusgained" and "focuslost".
AFAICT the JBOX_HILITE flag enables your object to gain/lose focus.
It needs to be set in your new method.
Best.
- Luigi
Thanks for the pointer Luigi. Can't believe I didn't see that, I've been using that code as a reference...