Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to remove menu access key
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to remove menu access key

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


Joined: 15 November 2004
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sergey Quote  Post ReplyReply Direct Link To This Post Topic: How to remove menu access key
    Posted: 20 July 2005 at 7:29am

I would like to remove specific menu access key (for example Alt-F, because this key combination is used in our application for another purpose). If I do not specify '&' in the menu caption (like ABC&FG... ) the access key is still working for first character ('A') of the caption (that is also used for another purpose).

If I use xtpKeyboardCuesUseNone flag then ALL access keys are not working.

How to remove specific menu access key?

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: 20 July 2005 at 11:55am

I can only suggest to override PreTranslateMessage and don't call base class

if pMsg->message is WM_SYSKEYDOWN and wParam is 'F' Key.

but Don't thnk it is friendly for user to have no any accelerotro for File Menu, better set another key as accelerator like "F&ile". or don't use Alt + Key combination at all. use Ctrl + Key (as Microsoft recommend)

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Sergey View Drop Down
Newbie
Newbie


Joined: 15 November 2004
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sergey Quote  Post ReplyReply Direct Link To This Post Posted: 26 July 2005 at 6:19am

I still think that Xtreme Commandbar should NOT change standard Windows menu hotkeys behavior (if there is no & in the menu item - there is no hotkey for this item) . I have no problem with new behavior of Xtreme - but make it OPTIONAL. So what I want is that flag xtpKeyboardCuesUseNone will fall back to standard Windows behavior, or to define new flag, f.e. xtpKeyboardCuesUseDefault with such behavior. We can't eliminate usage of Alt+key hotkeys, because child windows in our app are browser controls (HTML) and inside of HTML access is ALT+key...

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: 26 July 2005 at 7:19am

Hi,

Actually _this is_ standard Windows menu hotkeys behavior. You can create new MDI/SDI application and remove "&" From File menu. You will see that Alt+F can be used.

In 9.71 will be added xtpKeyboardCuesUseAmpersandOnly option.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.172 seconds.