Page 3 of 3

Re: GadTools IM_MENU shortcuts

Posted: Sat Jul 26, 2014 12:24 am
by chris
salass00 wrote: That would make sense and it would get rid of the menu highlighting problem but unfortunately it's probably not that smart a change to do since most other ReAction classes seem to prefer FILLPEN and FILLTEXTPEN for this purpose as well. Just changing label.image to use SELECTPEN and SELECTTEXTPEN instead of FILLPEN and FILLTEXTPEN is probably likely to make some GUIs look inconsistent.

Edit: After a more thorough look the only gadget class that seems to use SELECTPEN by default instead of FILLPEN for highlighting is chooser.gadget and that is probably mainly because it's meant to look and work similar to a menu.
It might be an option then for LABEL_MenuMode (or whatever) to have a transparent background and SELECTTEXTPEN for the text?

If you change the bitmap.image object to have a transparent background (I think it's BITMAP_Mask,TRUE and BITMAP_UseAlpha,TRUE or something like that), is the highlighting for the selected image there the correct colour?

Re: GadTools IM_MENU shortcuts

Posted: Mon Jul 28, 2014 1:06 pm
by salass00
chris wrote: It might be an option then for LABEL_MenuMode (or whatever) to have a transparent background and SELECTTEXTPEN for the text?
LABEL_MenuMode tag is now implemented in the latest beta version of label.image.

Re: GadTools IM_MENU shortcuts

Posted: Mon Jul 28, 2014 1:14 pm
by chris
salass00 wrote:
chris wrote: It might be an option then for LABEL_MenuMode (or whatever) to have a transparent background and SELECTTEXTPEN for the text?
LABEL_MenuMode tag is now implemented in the latest beta version of label.image.
Excellent. Can you share the #define, as SDK updates are few and far between?

Re: GadTools IM_MENU shortcuts

Posted: Mon Jul 28, 2014 6:40 pm
by salass00
chris wrote: Excellent. Can you share the #define, as SDK updates are few and far between?

Code: Select all

#define LABEL_MenuMode          (LABEL_Dummy+12)
    /* (BOOL) Use highlighting that fits in better visually in a
       menu. Defaults to FALSE. */