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]
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: 14267
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: Mon Aug 18 00:14:24 CEST 2025

Total time taken to generate the page: 0.05338 seconds