Print Page | Close Window

Menu entries and Accelerator

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=265
Printed Date: 06 March 2025 at 1:56pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Menu entries and Accelerator
Posted By: Wolfgang
Subject: Menu entries and Accelerator
Date Posted: 03 December 2003 at 8:29am

Hello,

I know it must get boring, but I still have some questions and Problems with the Menus.

This time its about the display of the Accelerator keys in menu entries.

So far i saw, that the Key Combination is only displayed if there is also a Toolbar Button with the same ID. Is this a correct view? So there is no way to tell the command bar to display a Accelerator with any other ressources (e.g. StringValue)?

the second problem is, that this Hotkeys are displayed like Ctrl-S e.g. for save. But I develop an application for the german market, which means that Ctrl must be Replaced with Strg (Like Shift must be substituted with Umschalt).

How can I switch the language therefore?

Hope somebody could enlighten me.

thanks

Wolfgang




Replies:
Posted By: Oleg
Date Posted: 04 December 2003 at 9:38am
To add new accelerator key choose Accelerator branch on the ResourceView pane.

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


Posted By: Wolfgang
Date Posted: 05 December 2003 at 2:15am

Of course.

Ok so i get the Key into the Menu (Allthough it seems that the Accelerator from the first Accelerator tables are used, my App uses more then one ), but is there no otherway to display the Hotkeys?

But how could I switch the Language Mode? Because Ctrl/Shift is not really desired here!

thanks in advance

Wolfgang



Posted By: Sven
Date Posted: 05 December 2003 at 6:07am

If you have the MFC edition you can substitute in XTPShortcutManager.cpp

void CXTPShortcutManager::CKeyHelper::Format (CString& str) const

with the implemenation of previous version.



Posted By: Wolfgang
Date Posted: 05 December 2003 at 6:14am

It seems so.. So far i didn't want to change the code, but there seems no way round...

nevertheless you helped me!

thanks!!!

wolfgang




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