On 13.12.2009, at 11:12, blue146 wrote:

> Didn't get any answer for this. Does anybody has a clue ?
> 
>> I want to change the skin of my app so that the menus are in darker gray. 
>> I've done something like this:
>> 
>> fl_color(50,50,50);
>> m_menubar.menu(menutable);
>> m_menubar.box(FL_FLAT_BOX);
>> 
>> This is the only place where fl_color is used.
>> The result is that the menubar and menus color change to the dark gray. 
>> However, the sub menus box has some borders (I guess that the submenu uses 
>> FL_UP_BOX). The color of those edges remains as light as when using the 
>> default color. That means that the borders are in white or light gray that 
>> fit the default light-gray color. This border color does not look natural 
>> when using the dark gray color as above. How can I change the color of the 
>> box edges, or set the menus and sub-menus boxes to be flat ?

I am sure that the above code did not work. Menus use a standard style and 
color which is determined by reading the user preferred colors during 
Fl::args(argc, argv) or Fl_Window->show(argc, argv). There is no interface to 
change these.

There is one exception though: if the menu is part of a Menu_Button or Choice, 
the new menu will inherit the button color and box style (except FLAT_BOX). I 
don't know why it is done that way, but the code says so:

Fl_Menu.cxx:276 etc.

 Matthias

PS: it's no secret that I am very unhappy with the FLTK1 menu code... 
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to