Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Menus&Toolbars » MenuBar Color[BUG]
MenuBar Color[BUG] [message #13325] Tue, 01 January 2008 19:01 Go to next message
bytefield is currently offline  bytefield
Messages: 210
Registered: December 2007
Experienced Member
Hi.
If i set the menu bar to left, right or bottom, it become black.
index.php?t=getfile&id=909&private=0
  • Attachment: menubar.jpg
    (Size: 5.75KB, Downloaded 1018 times)


cdabbd745f1234c2751ee1f932d1dd75
Re: MenuBar Color[BUG] [message #13619 is a reply to message #13325] Thu, 17 January 2008 18:22 Go to previous messageGo to next message
mrjt is currently offline  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 Go to previous messageGo to next message
mirek is currently offline  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
Re: MenuBar Color[BUG] [message #13636 is a reply to message #13625] Fri, 18 January 2008 10:31 Go to previous messageGo to next message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
I would leave it as it is unless there are obvious problems. It's a rare use-case, looks fine on XP and there is always the options of setting the changing the style yourself.

Thanks,
James
Re: MenuBar Color[BUG] [message #13652 is a reply to message #13636] Sat, 19 January 2008 11:36 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
mrjt wrote on Fri, 18 January 2008 04:31

I would leave it as it is unless there are obvious problems. It's a rare use-case, looks fine on XP and there is always the options of setting the changing the style yourself.

Thanks,
James


OK Wink

Mirek
Previous Topic: ArrayCtrl and Menus switching
Next Topic: Menu is flicking on Linux in NOGTK configuration
Goto Forum:
  


Current Time: Fri Mar 29 14:15:58 CET 2024

Total time taken to generate the page: 0.02053 seconds