![]() |
Localizing shortcut key text |
Post Reply
|
| Author | |
markh
Groupie
Joined: 12 November 2003 Location: United Kingdom Status: Offline Points: 49 |
Post Options
Thanks(0)
Quote Reply
Topic: Localizing shortcut key textPosted: 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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
markh
Groupie
Joined: 12 November 2003 Location: United Kingdom Status: Offline Points: 49 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 March 2006 at 10:44am |
|
Thanks Oleg. That worked OK! Mark |
|
![]() |
|
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 |