Print Page | Close Window

Setting Hotkey Assignment for Menu Items

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=7984
Printed Date: 13 November 2025 at 11:55am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Setting Hotkey Assignment for Menu Items
Posted By: GK1402
Subject: Setting Hotkey Assignment for Menu Items
Date Posted: 12 September 2007 at 6:07pm
Hello,
 
I am using Xtreme Toolkit to dynamically add a menu item and am having trouble specifying the hotkey assignment.  When I add a '&' character to the caption text instead of interperting that for the hotkey assignment it displays the '&' in the caption of the menu item at run-time.  Do you know how I can spcify the hotkey for a menu item that is dynamically created with Xtreme Toolkit?
 
Thank you,
 
Phil



Replies:
Posted By: Oleg
Date Posted: 13 September 2007 at 12:48am

Hello,

Can you show code you use? 
 '&' character have to work.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: GK1402
Date Posted: 13 September 2007 at 12:36pm
Here's the statement that is setting the caption:
 

CXTPToolBar* pWebToolBar = pCommandBars->Add(_T("Web Toolbar"), xtpBarTop);



Posted By: GK1402
Date Posted: 13 September 2007 at 12:38pm
Sorry, that code sample is without any '&' symbol, but what I have tried is placing the '&' before several of the letters in that string literal and in the menu it just displays the '&' instead of interpreting it.


Posted By: Oleg
Date Posted: 14 September 2007 at 12:23am
Hello,
 
It _must_ work. Attach sample to show what you do.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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