可以在命名的时候设置一下比如 menu itemd的 caption那里设为 111&a 然后按alt+a,就可以出下一级菜单
具体可以看帮助 Set Caption to the string the user sees for this item in the menu. To underline a character in a string, include an ampersand (&) before the character. This type of character is called an accelerator character. If Caption includes an accelerator character, the user can select the menu item by pressing Alt while typing the underlined character. 另外如果想实现类似于hotkey功能,这样好像不行
你的menuitem的autohotkeys设置了吗?
menu itemd的 caption那里设为
111&a 然后按alt+a,就可以出下一级菜单
Set Caption to the string the user sees for this item in the menu. To underline a character in a string, include an ampersand (&) before the character. This type of character is called an accelerator character. If Caption includes an accelerator character, the user can select the menu item by pressing Alt while typing the underlined character.
另外如果想实现类似于hotkey功能,这样好像不行
每个Action的快捷键,再把每个Action分配给相应的按钮,菜单。
我也想问这个问题,
我看有很多人没有明白,我再帮着为仁兄描述一边:
在Controlbar上放一个toolbar,toolbar的Menu设成MainMenu,
把FormMain的MainMenu清空,就实现了把Menu放在Controlbar上了,
但这样MainMenu的快捷键就无法响应了,有没有高手能解决问题?