How to remove menu access key |
Post Reply |
Author | |
Sergey
Newbie Joined: 15 November 2004 Status: Offline Points: 18 |
Post Options
Thanks(0)
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? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Sergey
Newbie Joined: 15 November 2004 Status: Offline Points: 18 |
Post Options
Thanks(0)
|
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... |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |