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 » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl and WhenMenuBar
GridCtrl and WhenMenuBar [message #33547] Mon, 22 August 2011 15:31 Go to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

here I am with the last question (perhaps) on GridCtrl Smile .
With right click I had a standard popup menu with Edit,MoveUp,MoveDown. Then I wanted to add a new menu item with

arr.WhenMenuBar = THISBACK(AddMenuitem); //in constructor

where

void VegaTab1::AddMenuitem(Bar &bar)
{
bar.Add(t_("Modify crosstable"),THISBACK(ModifyCrossTableCB));
}

With my surprise this item appeared and worked OK, but the previous items disappeared! Is this normal? Can I preserve the previous items?

EDIT: Yes, I can. The solution is


void VegaTab1::AddMenuitem(Bar &bar)
{
bar.Add(t_("Modify crosstable"), THISBACK(ModifyCrossTableCB));
arr.StdMenuBar(bar);
}

Thanks,
Luigi

[Updated on: Mon, 22 August 2011 17:23]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: GridCtrl: assign default value & WhenAcceptRow
Next Topic: GridCtrl MinGW compiling error
Goto Forum:
  


Current Time: Thu Apr 25 14:39:07 CEST 2024

Total time taken to generate the page: 0.02677 seconds