Print Page | Close Window

localization of shortcut with SetKeyName

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=8193
Printed Date: 18 June 2025 at 2:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: localization of shortcut with SetKeyName
Posted By: joeliner
Subject: localization of shortcut with SetKeyName
Date Posted: 27 September 2007 at 10:46am


hi,

Could we possible have a parameter option for including the ommission of 'ctrl' while using the SetKeyNameText in commandbars.keybindings? for instance, if i have a 'Ctrl + K' shortcut and use the SetKeyNameText, only K is replaced. how do i replace ctrl?

thanks.




Replies:
Posted By: Oleg
Date Posted: 27 September 2007 at 3:06pm
Hi,
Here solution
 
Const VK_CONTROL = &H11
CommandBars.KeyBindings.SetKeyNameText VK_CONTROL, "cTrL"


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


Posted By: joeliner
Date Posted: 02 October 2007 at 10:26am
Hi Oleg,
that almost did it. the '+' sign still appears. probably you can correct me in what am trying to achieve. on ribbonbar system popup i have controls that have shortcut - e.g New Ctrl + N.
 
so to avoid the keybindings showing on the popup, am using the setKeyNameText to blank.
 
is this the right way of doing it or there is a property for disabling shortcut keys on syspopup. (i realise office2007 works the same way where you can use Ctrl + N to open a new document but the keybindings dont show on popup)
 
thanks for all your help.
 
regards


Posted By: Oleg
Date Posted: 03 October 2007 at 1:38am
Hi,
think better solution is to call Control.ShortcutText = "    "


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


Posted By: joeliner
Date Posted: 03 October 2007 at 8:39am
thanks.
 
it worked.



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