Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Menu shortcuts are gone
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Menu shortcuts are gone

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


Joined: 01 August 2004
Status: Offline
Points: 443
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Topic: Menu shortcuts are gone
    Posted: 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?
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: 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
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 443
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post 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.
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.063 seconds.