Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - localization of shortcut with SetKeyName
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

localization of shortcut with SetKeyName

 Post Reply Post Reply
Author
Message
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 Topic: localization of shortcut with SetKeyName
    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.

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: 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
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: 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
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: 03 October 2007 at 1:38am
Hi,
think better solution is to call Control.ShortcutText = "    "
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: 03 October 2007 at 8:39am
thanks.
 
it worked.
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.030 seconds.