Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Menu entries and Accelerator
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Menu entries and Accelerator

 Post Reply Post Reply
Author
Message
Wolfgang View Drop Down
Newbie
Newbie


Joined: 01 December 2003
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wolfgang Quote  Post ReplyReply Direct Link To This Post Topic: Menu entries and Accelerator
    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

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: 04 December 2003 at 9:38am
To add new accelerator key choose Accelerator branch on the ResourceView pane.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Wolfgang View Drop Down
Newbie
Newbie


Joined: 01 December 2003
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wolfgang Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Sven View Drop Down
Senior Member
Senior Member


Joined: 21 August 2003
Location: Germany
Status: Offline
Points: 127
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sven Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Wolfgang View Drop Down
Newbie
Newbie


Joined: 01 December 2003
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wolfgang Quote  Post ReplyReply Direct Link To This Post 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

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