Forums > Dev

UI Object Focus

Mar 08 2014 | 10:51 am

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?

Mar 09 2014 | 9:19 pm

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.


– Luigi

Mar 11 2014 | 5:41 am

Thanks for the pointer Luigi. Can’t believe I didn’t see that, I’ve been using that code as a reference…

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > Dev