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 » U++ Widgets - General questions or Mixed problems » Look of MenuBar dependent on position of calls
Look of MenuBar dependent on position of calls [message #13615] Thu, 17 January 2008 15:08 Go to previous message
cbpporter is currently offline  cbpporter
Messages: 1427
Registered: September 2007
Ultimate Contributor
I noticed something strange: when creating a menu, if you change the order of MenuBar::Set and TopWindow::AddFrame, the menu looks differently. If it has a submenu it even looks nice, so I guess this is intentional.

But if it doesn't have a submenu, the text is not centered.

I think suck things should not be dependent on the order of calls. To see what I mean, run Gui07 and edit:
MyAppWindow() {
	Title("My application with menu").Sizeable();
		
	menu.Set(THISBACK(MainMenu)); // this was after the next one
	AddFrame(menu);
}
 
Read Message
Read Message
Read Message
Previous Topic: How can Layout be used for non-TopWindow special widget?
Next Topic: FIX - SizeGrip executes first MenuEntry of MenuBar
Goto Forum:
  


Current Time: Sat Jun 07 23:00:56 CEST 2025

Total time taken to generate the page: 0.04701 seconds