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 » Look and Chameleon Technology » coloring menu background
Re: coloring menu background [message #18619 is a reply to message #18612] Sun, 12 October 2008 13:19 Go to previous message
bytefield is currently offline  bytefield
Messages: 210
Registered: December 2007
Experienced Member
Hi, you should give more info about which platform you use and which Upp version. Here, on Linux with latest svn it work and the color of menu bar is changed(kind of green). If you want to change also the "menu" color you have to write something like:
menu_style.popupbody = Color(191,227,3);

See all members of MenuBar::Style and try to play with they to see how they behave.
P.S.: i think Menu is an instance of MenuBar, no?
Add your code in constructor of example 7 from Manual and report if it work or not. I think there should be no problems with that. (Don't forgot to use lower-case if you put your code in example 7 Menu->menu) Smile

Modify colors from my code to see which part of menu is changed.
	MyAppWindow() {
		Title("My application with menu").Sizeable();
		static MenuBar::Style menu_style = MenuBar::StyleDefault();
		menu_style.look = Color(191,227,3);
		menu_style.popupbody = Color(191,227,3);
		menu_style.topitem[2] = Color(191,2,3);
		menu_style.topitem[1] = Color(10,200,3);
		menu_style.topitem[0] = Color(100,255,33);
		menu_style.item = Color(25,100,25);
		menu.SetStyle(menu_style);
		AddFrame(menu);
		menu.Set(THISBACK(MainMenu));

	}


cdabbd745f1234c2751ee1f932d1dd75
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: changing button image make program crash
Next Topic: How to zoom all fonts?
Goto Forum:
  


Current Time: Sat May 04 06:57:24 CEST 2024

Total time taken to generate the page: 0.02331 seconds