![]() |
Menu shortcuts are gone |
Post Reply
|
| Author | |
markr
Senior Member
Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
Quote Reply
Topic: Menu shortcuts are gonePosted: 15 July 2008 at 3:24pm |
|
I'm running XTP 12.0.1, and I just noticed that all my menu shortcuts are gone. They exist in my resource files (e.g. "&Options...\tShift+Alt+O") and they still process correctly, but they are no longer drawn within the menu items.
If I revert back to a previous (XTP v11 based) build of my software, they are there. Using source control, I can't find any explanation for this in my own code, so I'm wondering if its an XTP issue. Anyone else seeing this problem? Or maybe I'm losing my mind? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 July 2008 at 3:45pm |
|
Hi,
These shortcuts go from Accelerator table. Check what values you have in IDR_MAINMENU Accelerator.
Try add
pCommandBars->GetShortcutManager()->SetAccelerators(IDR_MAINFRAME);
and try commend LoadCommandBars one time to not load last state.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
markr
Senior Member
Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 July 2008 at 3:58pm |
|
Hi Oleg,
Thanks for the quick reply. The call to SetAccelerators(IDR_MAINFRAME) did the trick. Still seems odd that it worked before without this line of code. But, I'm happy to have it working again. ![]() |
|
![]() |
|
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 |