奇怪的弹出菜单问题
我正在使用 delphi 2009 并创建了一个弹出菜单。
object PopupMenu1: TPopupMenu
object lmm1: TMenuItem
Caption = 'lm/m'#178
end
end
一旦弹出菜单中出现“²”,它就会显示为“lm/m²(L)”。使用 maManual 进行 AutoHotKeys 没有帮助...它仍然以相同的方式显示。它就像热键,因为每个菜单项都有一个新的。
“流明/平方米(L)” “米/平方米(M)” “上午/平方米 (N)” “bm/m² (O)”
如果我希望 (L) 消失,
必须使用“lm/m2”而不是“lm/m²”吗?在国际上使用,我仍然希望“²”能够正确显示。
感谢您的帮助!
I'm using delphi 2009 and have created a popup menu.
object PopupMenu1: TPopupMenu
object lmm1: TMenuItem
Caption = 'lm/m'#178
end
end
as soon as i have a "²" in a popup menu, it'll appear as "lm/m²(L)". using maManual for AutoHotKeys doesn't help...it still appears the same way. it's like hotkeys because each menu item gets a new one.
"lm/m² (L)"
"m/m² (M)"
"am/m² (N)"
"bm/m² (O)"
must i use "lm/m2" instead of "lm/m²" if i want the (L) to go away?
used internationally, i'd still expect the "²" would be displayed properly.
thank you for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是我在研究/调试 TMenuItem.InternalRethinkHotkeys 和 TMenuItem.GetAutoHotkeys 的源代码后设计的解决方案:
here's the solution i devised after studying/debugging the source of the TMenuItem.InternalRethinkHotkeys and TMenuItem.GetAutoHotkeys:
AutoHotKeys
属性适用于按住 ALT 键时的键盘加速器。您所看到的是正在工作的TMenuItem.ShortCut
属性。对于您不希望出现“(#)”的任何项目,请确保将其设置为scNone
。The
AutoHotKeys
property applies to keyboard accelerators when the ALT key is held down. What you are seeing is theTMenuItem.ShortCut
property at work instead. Make sure it is set toscNone
for any item you do not want "(#)" to appear on.