GadTools IM_MENU shortcuts

A forum for general AmigaOS 4.x support questions that are not platform-specific
chris
Posts: 564
Joined: Sat Jun 18, 2011 12:05 pm
Contact:

Re: GadTools IM_MENU shortcuts

Post 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?
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 534
Joined: Sat Jun 18, 2011 4:12 pm
Location: Finland
Contact:

Re: GadTools IM_MENU shortcuts

Post 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.
chris
Posts: 564
Joined: Sat Jun 18, 2011 12:05 pm
Contact:

Re: GadTools IM_MENU shortcuts

Post 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?
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 534
Joined: Sat Jun 18, 2011 4:12 pm
Location: Finland
Contact:

Re: GadTools IM_MENU shortcuts

Post 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. */
Post Reply