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

Home » U++ Library support » Menus&Toolbars » Menu, SubMenu and Icons [ADDED]
Re: Menu [message #2380 is a reply to message #2376] Mon, 10 April 2006 10:58 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
unodgs wrote on Mon, 10 April 2006 04:21

Consider this piece of code:

void App::CreateSubMenu(Bar &bar) {..}

App:App()
{
MenuBar bar;
bar.Add("Submenu", NiceImg(), THISBACK(CreateMoveRecordMenu));
}

The bar.Add(..) wont work... I have to write..

bar.Add("Submenu", THISBACK(CreateMoveRecordMenu));

...but then submenu is without icon.
I'm not sure what is better - submenu with or without icon, but IMO there should be ability to create submenu with icon.



bar.Add("Submenu", THISBACK(CreateMoveRecordMenu)).Image(NiceImg())

But maybe you are right anyway... added.

Mirek
 
Read Message
Read Message
Previous Topic: Minor crash with Menu... [FIXED]
Next Topic: EditString in toolbar doesn't work
Goto Forum:
  


Current Time: Sat Jun 20 17:13:20 GMT+2 2026

Total time taken to generate the page: 0.00743 seconds