Print Page | Close Window

Shortcut/Accelerator problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=6084
Printed Date: 19 June 2025 at 1:22am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Shortcut/Accelerator problem
Posted By: simus
Subject: Shortcut/Accelerator problem
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: joeliner
Date 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


Posted By: Oleg
Date Posted: 11 February 2007 at 3:21am
Hi,
 
Dim WithEvents KeyBindings As KeyBindings
 
...
 
Set KeyBindings = CommandBars.KeyBindings


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: cmaxmedia
Date Posted: 26 March 2007 at 8:39am
Hi,
how can i do this in vb6 and v 9.81?
 
thank you


Posted By: Oleg
Date Posted: 26 March 2007 at 10:37am
Hi,
events in Keybindings class was added after 9.81 release.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net