我如何从 TSynEdit 组件调用系统弹出菜单
当我在 TMemo
组件中右键单击时,系统会显示一个弹出菜单,如下所示
但是当我使用 TSynEdit
组件时,不会显示此弹出菜单,问题是存在任何方法可以在 TSynEdit 组件中激活此系统弹出菜单,还是我必须自己实现一个权利 单击弹出菜单TSynEdit 组件获得右键剪切、复制、粘贴、删除功能?
When I make a right click in a TMemo
component the system display a popup menu like this
but when I use a TSynEdit
component this popup menu is not shown, the question is exist any way to activate this system popup menu in a TSynEdit component or do I have to implement myself a right-click popup menu for the TSynEdit component to get right-click Cut,Copy,Paste,Delete functionality ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您显示的弹出菜单由 Windows 本身添加到编辑控件(TMemo 是多行编辑控件的包装器)。由于 SynEdit 不是基于 Windows 编辑控件,而是完全自行实现,因此 Windows 不提供该菜单。
如果 SynEdit 本身不提供弹出菜单,则您必须实现自己的弹出菜单。
The popup menu you're showing is added by Windows itself to Edit controls (TMemo is a wrapper around a multiline Edit control). Since SynEdit isn't based on the Windows Edit control, but is implemented fully itself, Windows doesn't provide that menu.
If SynEdit doesn't provide a popup menu itself, you'll have to implement your own.