![]() |
How to rename menu item? |
Post Reply
|
| Author | |
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Topic: How to rename menu item?Posted: 22 April 2008 at 4:45pm |
|
CMenu Menu;
Menu.LoadMenu( IDR_MENU_LINE_SPACING_CONTEXT );
pControlLineSpacing->SetCommandBar( Menu.GetSubMenu( 0 ) );
We have the above code to add a menu to a xtpControlPopup however how would we rename menu items on the fly after we have created the button
Any help much appreciated
|
|
|
Thank you,
Terry Mancey email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 April 2008 at 1:07am |
|
Hi,
For example you can add Update handler for this Id and update it in handler.
or manually find this control and call pControl->SetCaption(..);
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 April 2008 at 5:06am |
Ah must have been me tired as did try that early hours, but now retried and all fine.
However with this menu if I right click an item in the menu and click Add to Quick Access Toolbar it adds the actual item whereby Office 2007 actually adds a popup button and if clicked it shows the entire menu.
Is this a problem with XTP or is there another way around this please?
|
|
|
Thank you,
Terry Mancey email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |