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 » beginner's questions about menu&bars [SOLVED]+[EXAMPLES]
Re: question about menu [message #1942 is a reply to message #1935] Tue, 28 March 2006 14:08 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1187
Registered: March 2006
Location: Italy
Senior Contributor
luzr wrote on Tue, 28 March 2006 03:29

.......
	void MySelect() { .... }

	void Select(Bar& bar)
	{
		bar.Add("Select!", THISBACK(MySelect));
	}

	void MainBar(Bar& bar)
	{
		bar.Add("Menu", THISBACK(Menu));
		bar.Add("Select", THISBACK(Select));
	}
......


The difference between Bar and MenuBar is that "Bar" can mean ToolBar as well - you can share the same definition for both.

Mirek


Thank you very much!
This example and the next one are very useful (please let me suggest to add it in the documentation). Now I can realize all menu I desire.

Luigi
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Navigating through menu items help line isn't shown [SOLVED?]
Next Topic: Minor crash with Menu... [FIXED]
Goto Forum:
  


Current Time: Tue May 28 21:58:45 CEST 2024

Total time taken to generate the page: 0.01550 seconds