UI Object Focus


    Mar 08 2014 | 6:51 pm
    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 10 2014 | 4:19 am
      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
    • Mar 11 2014 | 12:41 pm
      Thanks for the pointer Luigi. Can't believe I didn't see that, I've been using that code as a reference...