Home » U++ Library support » Menus&Toolbars » MenuBar Color[BUG]
|
Re: MenuBar Color[BUG] [message #13619 is a reply to message #13325] |
Thu, 17 January 2008 18:22 |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
I too would like to be able to fix menu bars to the left, right or bottom of windows.
The fix is to change line 81 of MenuBar.cpp (MenuBar::Paint) from:
Quote: | PaintBarArea(w, this, style->arealook);
| to:
Quote: | PaintBarArea(w, this, style->arealook, (GetAlign() != BAR_TOP) ? GetScreenRect().bottom : INT_NULL);
|
I can see no downside to this, so would it be possible to commit the change please?
[Updated on: Thu, 17 January 2008 19:17] Report message to a moderator
|
|
|
Re: MenuBar Color[BUG] [message #13625 is a reply to message #13619] |
Thu, 17 January 2008 21:09 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
mrjt wrote on Thu, 17 January 2008 12:22 | I too would like to be able to fix menu bars to the left, right or bottom of windows.
The fix is to change line 81 of MenuBar.cpp (MenuBar::Paint) from:
Quote: | PaintBarArea(w, this, style->arealook);
| to:
Quote: | PaintBarArea(w, this, style->arealook, (GetAlign() != BAR_TOP) ? GetScreenRect().bottom : INT_NULL);
|
I can see no downside to this, so would it be possible to commit the change please?
|
Applied. Anyway, the question is whether in those case, look should not default to something else, like SColorFace. Windows nor Gtk themes are not designed for such use....
Mirek
|
|
|
|
|
Goto Forum:
Current Time: Mon Apr 29 17:28:09 CEST 2024
Total time taken to generate the page: 0.02056 seconds
|