维生素Ctrl的问题 [英] Problem with VitaminCtrl

查看:108
本文介绍了维生素Ctrl的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在IP Camera Project中使用VitaminCtrl。现在我遇到了一个问题:我想处理鼠标右键单击事件来显示菜单(如窗口媒体播放器)。 VitaminCtrl有一个属性是BeRightClickHandler,我设置它是真的,在运行时,它总是显示操纵杆设置菜单,我无法自定义它,我无法处理右键单击事件的VitaminCtrl。



我的问题是如何处理维生素Ctrl的右键单击事件?我可以自定义菜单操纵杆设置吗?请给我解决方案。



提前致谢!

Hi everyone,
I am working with VitaminCtrl in IP Camera Project. Now I have a problem that: I want to handle "right mouse click" event to show menu (like window media player). VitaminCtrl has a attribute is "BeRightClickHandler", I were set it is true and when running, it always show "Joystick Settings" menu and I can not customize it, and I can not handle "right click" event of VitaminCtrl.

My question is how to handle "right click" event of VitaminCtrl? Can I customize menu "Joystick Settings"? Please give me solution for it.

Thanks in advance!

推荐答案

我建​​议你联系供应商得到帮助。他们会知道他们最好的控制以及如何完成你想做的事。



失败了......



- 您可以将其控件子类化并覆盖OnRightMouseButtonPress方法。假设它们的控制来自基本的Windows控件类,并且它们没有密封它。只需用你的新扩展控件替换你项目中的控件。



- 你可以在vitaminctrl上设置一个不可见的控件来捕获鼠标事件。如果没有左键单击要求,这在winforms,wpf,silverlight或WinRT中实际上很容易。
I suggest you contact the vendor to get help. They are going to know their control the best and how to accomplish what you want to do.

Failing that....

- you might be able to subclass their control and override the OnRightMouseButtonPress method. That assumes their control derives from the base windows control class and they haven't sealed it. Just replace their control in your projectwith your new, extended control.

- you could position an invisible control over the vitaminctrl to capture the mouse events. If there is no left-click requirement, this would actually be really easy in winforms, wpf, silverlight, or WinRT.


这篇关于维生素Ctrl的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆