Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to rename menu item?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to rename menu item?

 Post Reply Post Reply
Author
Message
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Posted: 23 April 2008 at 5:06am
Originally posted by oleg oleg wrote:

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(..);
 
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.