![]() |
12.1.1 menu accelerator keys problem |
Post Reply ![]() |
Author | |
rconn ![]() Groupie ![]() Joined: 16 May 2007 Location: United States Status: Offline Points: 79 |
![]() ![]() ![]() ![]() ![]() Posted: 31 December 2008 at 11:24pm |
After upgrading to 12.1.1, I did a new install of our app and found that all of the accelerator keys were missing from the menu.
I traced it to XTPShortcutManager.cpp. At line 1416 in DoPropExchange, you're calling m_pAccelTable->RemoveAll() before checking to see if there is a saved accelerator table. But the first time the app is run, there is no existing table, so the default accelerator table is destroyed and replaced with an empty one. When the app exits, that empty table is saved, so the only way to ever get accelerator keys is to enter them manually in the customize menu dialog.
I made a change to move the RemoveAll() call down after nAccelSize is set; i.e.:
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Where you read customization from ? by default LoadCommandBars load it from registry and DoPropExchange not even called.
|
|
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 |