Print Page | Close Window

Adding a command for keyboard customisation

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=4941
Printed Date: 12 November 2025 at 12:54am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Adding a command for keyboard customisation
Posted By: danpetitt
Subject: Adding a command for keyboard customisation
Date Posted: 31 August 2006 at 4:22pm
How do I add a command ID so that it can be customised by the user with a shortcut if so desired ... it doesnt need an icon.
 
With old version you could do this with:
CXTAccelManager::Get().AddExtraCommand



Replies:
Posted By: Oleg
Date Posted: 01 September 2006 at 11:47am
Hello,
 
CXTPShortcutManager::AddShortcut(long fVirt, long key, long cmd)
 
:
pCommandBars->GetShortcutManager()->AddShortcut


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: danpetitt
Date Posted: 26 December 2006 at 4:34am
I was looking into this again, what you suggested isnt the same as you used to be able to do.
 
I want to add a command mapping to the Keyboard Customisation dialog without assigning a key ... as it doesnt have a key yet, but I want the user to be able to add one if they want.
 
CXTAccelManager::Get().AddExtraCommand
used to be able to allow you to set an ID_ command to a category "File" and a text entry "Open project", the new ShortcutManager->AddShortcut doesnt allow me to do this ... it would have to exist as a command on a menu already when it doesnt and I dont want to add it as such (its not important enough for a toolbar or menu).
 
How can I achieve the same functionality as before?


Posted By: Oleg
Date Posted: 26 December 2006 at 3:48pm
Hi,
Most flexible way is add additonal menu template (f.e IDR_CUSTOMIZE) and group commands as you want and use this template instead main menu for Customize dialog.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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