![]() |
Adding a command for keyboard customisation |
Post Reply
|
| Author | |
danpetitt
Senior Member
Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
Post Options
Thanks(0)
Quote Reply
Topic: Adding a command for keyboard customisationPosted: 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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
danpetitt
Senior Member
Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
Post Options
Thanks(0)
Quote Reply
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? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |