Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Shortcut/Accelerator problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Shortcut/Accelerator problem

 Post Reply Post Reply
Author
Message
simus View Drop Down
Groupie
Groupie


Joined: 08 July 2005
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote simus Quote  Post ReplyReply Direct Link To This Post Topic: Shortcut/Accelerator problem
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 12 January 2007 at 1:11am
Hi,
 
1. you can catch KeyBindings_BeforeTranslate event and cancel it for this commands.
 
2. use ShortcutText property.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2007 at 7:34am
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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 11 February 2007 at 3:21am
Hi,
 
Dim WithEvents KeyBindings As KeyBindings
 
...
 
Set KeyBindings = CommandBars.KeyBindings
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cmaxmedia View Drop Down
Groupie
Groupie


Joined: 22 April 2006
Location: Austria
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmaxmedia Quote  Post ReplyReply Direct Link To This Post Posted: 26 March 2007 at 8:39am
Hi,
how can i do this in vb6 and v 9.81?
 
thank you
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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 March 2007 at 10:37am
Hi,
events in Keybindings class was added after 9.81 release.
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.063 seconds.