如何从 Delphi 2010 中的默认右键菜单中删除项目?
谁或什么在 Delphi 2010 VCL 应用程序中默认右键单击弹出菜单的底部插入了 Unicode、从右到左和 IME 项?我想在不太可能需要它们的用户环境中删除它们,而不必为每个编辑和备忘录定义自定义弹出菜单。大多数时候只有复制、剪切、粘贴和选择才合适。
Who or what inserts the Unicode, right-to-left and IME items at the foot of the default right-click popup menu in Delphi 2010 VCL applications? I would like to remove them for user environments where they are unlikely ever to be needed, without having to define a custom pop-up menu for every edit and memo. Most of the time only copy, cut, paste and select all are appropriate.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
操作系统插入它们。整个菜单是由底层Windows控件生成的,而不是由Delphi生成的。
要拥有不同的菜单,请提供您自己的
TPopupMenu
组件,设置控件的PopupMenu
属性,并提供您想要的任何菜单项。The OS inserts them. The entire menu is generated by the underlying Windows control, not by Delphi.
To have a different menu, provide your own
TPopupMenu
component, set the control'sPopupMenu
property, and provide whatever menu items you want.