KeyBindings duplicates |
Post Reply |
Author | |
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
Posted: 12 January 2009 at 2:31pm |
(SOLVED) I am using KeyBindings with a RibbonBar.
This works OK: CommandBars.KeyBindings.AddShortcut ID_ONE, "Alt+K" CommandBars.KeyBindings.AddShortcut ID_ONE, "Esc" ie. either ESC or ALT+K can be used. Both work. But this does not work: CommandBars.KeyBindings.AddShortcut ID_ONE, "Alt+K" CommandBars.KeyBindings.AddShortcut ID_TWO, "Alt+K" ie. when ALT+K used it calls ID_ONE only. (I expected the second line would overwite the ALT+K and change it to ID_TWO). This is a problem to me because I have many Tabs and need to re-use some shortcut keys. So I hide one Tab (with ID_ONE button on it) and then show a different Tab (with button ID_TWO on it) and I also want to set KeyBinding ALT+K to activate ID_TWO. If I know ALT+K was previously used by ID_ONE then I can use CommandBars.KeyBindings.Delete ID_ONE But if I do not know which control(s) have used ALT+K in the past, how can I find this? eg. is there something like... .KeyBindings.Delete , "Alt+K" ?? Or must I use .DeleteAll Or else keep my own list of ShortCut keys used? In other words, is there a way to find which control ID uses "Alt+K" ? ANSWER -- No. Not possible. |
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Think its not friendly for uesr to use different Commands for same Keyboard shortcuts when different Tabs selected.
Anyway seems only your internal Array can help here :(
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
OK, thanks.
|
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
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 |