Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl and WhenMenuBar
GridCtrl and WhenMenuBar [message #33547] |
Mon, 22 August 2011 15:31  |
 |
forlano
Messages: 1207 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
Hello,
here I am with the last question (perhaps) on GridCtrl .
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
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:23:51 CEST 2025
Total time taken to generate the page: 0.00772 seconds
|