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 » Menu, SubMenu and Icons [ADDED]
Menu, SubMenu and Icons [ADDED] [message #2376] Mon, 10 April 2006 10:21 Go to next message
unodgs is currently offline  unodgs
Messages: 1354
Registered: November 2005
Location: Poland
Senior Contributor

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.

[Updated on: Sun, 30 April 2006 12:17] by Moderator

Report message to a moderator

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: 12096
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
Previous Topic: Minor crash with Menu... [FIXED]
Next Topic: EditString in toolbar doesn't work
Goto Forum:
  


Current Time: Tue Nov 12 19:35:28 CET 2019

Total time taken to generate the page: 0.00968 seconds