In FLTK 1.4, "highlighted" menu bar items (and submenu items) are indicated with either an up box or a light background:
I much prefer the stronger contrast of using the FL_SELECTION_COLOR in FLTK 1.3:
I took a look at Fl_Menu_Item::draw() in Fl_Menu.cxx but it didn't seem clear how to customize a Fl_Menu_Bar to get the same effect.
Using test/editor.cxx as an example, I can add app_menu_bar->box(FL_FLAT_BOX); to replace the up box with a flat box, but I can't figure out how to always use FL_SELECTION_COLOR as the selected background color. (app_menu_bar->selection_color(FL_SELECTION_COLOR); as no affect and app_menu_bar->color(FL_SELECTION_COLOR); makes every non-selected menu item use the selection color.)
I also think the new style of the submenu arrows is a bit exaggerated:
And I think the more modest look of FLTK 1.3 arrows was more appropriate:
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.