Print Page | Close Window

Localizing shortcut key text

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=3755
Printed Date: 11 November 2024 at 3:05pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Localizing shortcut key text
Posted By: markh
Subject: Localizing shortcut key text
Date 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

 




Replies:
Posted By: Oleg
Date 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


Posted By: markh
Date Posted: 11 March 2006 at 10:44am

Thanks Oleg.

That worked OK!

Mark




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