![]() |
Shortcut/Accelerator problem |
Post Reply ![]() |
Author | |
simus ![]() Groupie ![]() Joined: 08 July 2005 Status: Offline Points: 43 |
![]() ![]() ![]() ![]() ![]() Posted: 11 January 2007 at 9:24am |
Hi,
I am facing 2 problems using CommandBars and KeyBindings.
1 -
If I Add in CommandBars.KeyBindings "Ctrl+C" and "Ctrl+V"
Then in my controls Ctrl+C, Ctrl+V does not work anymore. This is the command bar that eat it.
2 -
If I don't add in CommandBars.KeyBindings
But want to put the shortcut text directly in the text menu (vbTab & "Ctrl+V", ...) to handle them somewhere else I see that the commandBars remove this shortcut text.
Can anyone help on that either by giving a solution using properly KeyBindings or to way to handle correctly the keys.
Thanks a lot
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
1. you can catch KeyBindings_BeforeTranslate event and cancel it for this commands.
2. use ShortcutText property.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
joeliner ![]() Senior Member ![]() ![]() Joined: 09 June 2006 Status: Offline Points: 273 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Does this(refering to beforetranslate event) when you loadcommands from xcb file? How does one go about it? Thanks |
|
Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3 Language: Visual Basic 6 SP6 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Dim WithEvents KeyBindings As KeyBindings
...
Set KeyBindings = CommandBars.KeyBindings
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
cmaxmedia ![]() Groupie ![]() Joined: 22 April 2006 Location: Austria Status: Offline Points: 38 |
![]() ![]() ![]() ![]() ![]() |
Hi,
how can i do this in vb6 and v 9.81?
thank you
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
events in Keybindings class was added after 9.81 release.
|
|
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 |