开发者

How do I remove items from the default right-click menu in Delphi 2010?

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 applicat开发者_如何学Goions? 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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜