Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Adding a command for keyboard customisation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Adding a command for keyboard customisation

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


Joined: 17 July 2005
Location: United Kingdom
Status: Offline
Points: 109
Post Options Post Options   Thanks (0) Thanks(0)   Quote danpetitt Quote  Post ReplyReply Direct Link To This Post Topic: Adding a command for keyboard customisation
    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
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: 01 September 2006 at 11:47am
Hello,
 
CXTPShortcutManager::AddShortcut(long fVirt, long key, long cmd)
 
:
pCommandBars->GetShortcutManager()->AddShortcut
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
danpetitt View Drop Down
Senior Member
Senior Member


Joined: 17 July 2005
Location: United Kingdom
Status: Offline
Points: 109
Post Options Post Options   Thanks (0) Thanks(0)   Quote danpetitt Quote  Post ReplyReply Direct Link To This Post 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?
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: 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
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.031 seconds.