![]() |
localization of shortcut with SetKeyName |
Post Reply ![]() |
Author | |
joeliner ![]() Senior Member ![]() ![]() Joined: 09 June 2006 Status: Offline Points: 273 |
![]() ![]() ![]() ![]() ![]() Posted: 27 September 2007 at 10:46am |
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. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Here solution
Const VK_CONTROL = &H11
CommandBars.KeyBindings.SetKeyNameText VK_CONTROL, "cTrL" |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
joeliner ![]() Senior Member ![]() ![]() Joined: 09 June 2006 Status: Offline Points: 273 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
think better solution is to call Control.ShortcutText = " "
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
joeliner ![]() Senior Member ![]() ![]() Joined: 09 June 2006 Status: Offline Points: 273 |
![]() ![]() ![]() ![]() ![]() |
thanks.
it worked.
![]() |
|
![]() |
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 |