Print Page | Close Window

How to rename menu item?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=10334
Printed Date: 14 November 2025 at 8:08pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to rename menu item?
Posted By: terrym
Subject: How to rename menu item?
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: terrym
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net