Print Page | Close Window

Menu shortcuts are gone

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=11457
Printed Date: 15 September 2025 at 6:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Menu shortcuts are gone
Posted By: markr
Subject: Menu shortcuts are gone
Date 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?



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


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



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