Print Page | Close Window

How to remove menu access key

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=2607
Printed Date: 04 March 2025 at 9:32pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to remove menu access key
Posted By: Sergey
Subject: How to remove menu access key
Date 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?




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


Posted By: Sergey
Date 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...



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



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