Print Page | Close Window

Localize Accelerators

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4386
Printed Date: 10 November 2025 at 5:53pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Localize Accelerators
Posted By: Ark42
Subject: Localize Accelerators
Date Posted: 09 June 2006 at 5:11pm

The accelerator text is provided by Windows is it not? Is there any special call I need to do so that the text is translated properly? In my French build of my application, it seems that things like Page Down, Page Up, Space, and Enter still show up in English. I assume Ctrl and single letters do not need to be translated, but even weirder is that [ and ] show up as "Accent circonflexe" and ), so I know somewhere inside of Codejock or Windows, something is being translated for me.




Replies:
Posted By: Sven
Date Posted: 09 June 2006 at 5:26pm
Call CXTPShortcutManager::UseSystemKeyNameText(TRUE) or set m_bUseSystemKeyNameText in CXTPShortcutManager::CXTPShortcutManager to TRUE.


Posted By: Ark42
Date Posted: 09 June 2006 at 5:43pm

The default for that is FALSE then I take it?

I wish I could test this quicker, but even setting all of my local settings on Windows XP to French/France for keyboard/regional layout stuff still leaves these in English for me anyway.

If I set this to TRUE, then on a *real* French version of Windows XP, these things will be translated automatically and properly, by Windows, am I correct?



Posted By: Oleg
Date Posted: 10 June 2006 at 9:29am

Hello

yes, also you can manually translate them:

pCommandBars->GetShortcutManager()->SetKeyNameText(VK_ DOWN, "xxx");



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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