如何从 Delphi 2010 中的默认右键菜单中删除项目?

发布于 2024-08-10 11:27:52 字数 137 浏览 3 评论 0原文

谁或什么在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笑饮青盏花 2024-08-17 11:27:52

操作系统插入它们。整个菜单是由底层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's PopupMenu property, and provide whatever menu items you want.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文