有没有办法强制始终在菜单中显示的助记符? [英] Is there a way to force always show mnemonics in menus?

查看:332
本文介绍了有没有办法强制始终在菜单中显示的助记符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用的ContextMenuStrip在我的计划,显然,它不会显示其快捷键(助记符,那些应显示在通过与功放前面字母强调),除非我按下Alt键,但是当我按下Alt键时,显示的ContextMenuStrip将隐藏,因为表单的主菜单将接收焦点。因此,在上下文菜单,助记符从来没有见过!

I am making use of ContextMenuStrip in my program and apparently, it wont show its shortcut keys (mnemonics, those that should be shown as underlines under letters preceded by &) unless i press Alt, but when i press Alt, the shown ContextMenuStrip will hide because the main menu of the form will receive focus. Thus, in context menus, mnemonics are never seen!

有没有办法迫使这种行为是对我的程序?我在其他地方看,你可以在系统设置的地方改变它,但我用我的软件,总是看到助记符需要的人,而不是要求他们在全球范围改变他们的系统我的程序正常工作!

Is there a way to force this behavior to be on for my program? I've read elsewhere that you can change it somewhere in the system settings, but i need people using my software to always see mnemonics, not require them globally changing their systems for my program to work correctly!

我必须表明通过这个代码菜单中的KeyDown事件处理程序,当用户按下回车键,因为它的弹出通过控制所代表的价值的快速编辑。用户点击控制,并可以迅速改变其内容。认为它像在C#中,当你有上Ctrl +空格键弹出提示可能的代码snipplets你可以在这个确切位置插入一个弹出窗口。因此,使用它作为一个控制的上下文菜单中选择属性或使用键盘上的显示上下文菜单按钮犯规适用。

I have to show this menu via code in the KeyDown event handler when user presses Enter because its a popup for quick edit of a value represented by control. User clicks the control and can quickly change its contents. Think of it like in C# when you have a popup that pops on ctrl+space hinting possible code snipplets you can insert in this exact spot. So using it as a "context menu" property of a control or using keyboard "show context menu" button doesnt apply.

谢谢!

推荐答案

这是一个操作系统设置:

That is an operating system setting:

控制Panel\All控制面板Items\Ease访问Center\Make的键盘更容易use\Make它更容易使用键盘shortcuts\Underline键盘快捷键和快捷键。

Control Panel\All Control Panel Items\Ease of Access Center\Make the keyboard easier to use\Make it easier to use keyboard shortcuts\Underline keyboard shortcuts and access keys.

这篇关于有没有办法强制始终在菜单中显示的助记符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆