Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Localizing shortcut key text
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Localizing shortcut key text

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


Joined: 12 November 2003
Location: United Kingdom
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote markh Quote  Post ReplyReply Direct Link To This Post Topic: Localizing shortcut key text
    Posted: 10 March 2006 at 7:21am

Hello

Is there any way of localizing the Ctrl, Shift and Alt part of the shortcut key text?

I have tried using the SetKeyNameText method but this only appears to alter the actual keystroke text. I still get "Ctrl+" at the beginning of the string. For example if I use:

SetKeyNameText(int('O'), _bstr_t(_T("Hello")));

I get displayed in the menu "Ctrl+Hello".

On a German keyboard "Ctrl" is instead called "Strg". Therefore I would like the shortcut text in the above example to be "Strg+Hello".

Is this possible?

Thanks
Mark

 

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: 10 March 2006 at 10:08am

In 9.81 it works:

//#define VK_CONTROL        0x11
 

SetKeyNameText(VK_CONTROL, _bstr_t(_T("Strg")));

SetKeyNameText(int('O'), _bstr_t(_T("Hello")));

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
markh View Drop Down
Groupie
Groupie


Joined: 12 November 2003
Location: United Kingdom
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote markh Quote  Post ReplyReply Direct Link To This Post Posted: 11 March 2006 at 10:44am

Thanks Oleg.

That worked OK!

Mark

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.230 seconds.