U++ framework
Do not panic. Ask here before giving up.

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: 1240
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: Sun Jun 14 19:56:04 GMT+2 2026

Total time taken to generate the page: 0.00601 seconds