![]() |
Setting Hotkey Assignment for Menu Items |
Post Reply
|
| Author | |
GK1402
Newbie
Joined: 11 September 2007 Location: United States Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: Setting Hotkey Assignment for Menu ItemsPosted: 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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 September 2007 at 12:48am |
|
Hello, Can you show code you use?
'&' character have to work.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
GK1402
Newbie
Joined: 11 September 2007 Location: United States Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 September 2007 at 12:36pm |
|
Here's the statement that is setting the caption:
CXTPToolBar* pWebToolBar = pCommandBars->Add(_T( "Web Toolbar"), xtpBarTop); |
|
![]() |
|
GK1402
Newbie
Joined: 11 September 2007 Location: United States Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 September 2007 at 12:23am |
|
Hello,
It _must_ work. Attach sample to show what you do.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |