FLTK logo

[fltk.general] FLTK 1.4 Menu Bar Style

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

FLTK 1.4 Menu Bar Style Daniel Harding 19:09 May 05  
  In FLTK 1.4, "highlighted" menu bar items (and submenu items) are indicated with either an up box or a light background:
 
1.png

I much prefer the stronger contrast of using the FL_SELECTION_COLOR in FLTK 1.3:

2.png

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:

4.png

And I think the more modest look of FLTK 1.3 arrows was more appropriate:

3.png

Is it possible to customize this?

Thanks for any advice.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/6a0339e0-6b13-4a6b-b7f8-9e274ba369f4n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.