处理鼠标事件 [英] Working with Mouse events..

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

问题描述



我正在研究一个项目,该项目将安装在没有鼠标和键盘的Embedded pc中.与触摸屏一起使用.我的软件中有拨打电话的选项.
我需要像一键通这样的选项.当需要交谈时,他们需要按一下按钮;当他们释放时,他们就不能讲话.像对讲机概念.将要安装我的软件的嵌入式PC将具有触摸屏.我怎样才能做到这一点??

我试图在按钮单击事件中编写代码,当他们从按钮中拔出鼠标时,我正在停止声音.但是,那不是我想要的.

我该怎么做?

我该怎么做?

Hi,

I am working on a project which will be installed in Embedded pc which won't have mouse and keyboard. Works with touch screen. I have an option in my software to make calls.
I need to have an option like Push to talk. When need to talk they need to push the button and when they release they can't talk. Something like walkie talkie concept. The embedded pc where my software will be installed will have touch screen. How can I do this??

I tried to write my code in button click event and when they take out the mouse from the button, I am stopping voice. But, that is not I want. I need to push to talk and release after talk.

How can I do this??

推荐答案



如果触摸屏触发了mouse_down事件,则可以尝试.如果触发,则可以使用Mouse_down进行交谈,并使用mouse_up停止交谈.否则,我想你只能像按按钮讲话然后再次按它停止讲话一样来完成它.
Hi,

you could try the mouse_down event to if it fires by your touchscreen. If it fires then you can use Mouse_down to talk and mouse_up to stop talking. Otherwise i guess you can only do it like push the button to speak and push it again to stop speaking .


这篇关于处理鼠标事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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