LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to differentiate between a mouse click event or a touch screen event?

I have a need to differentiate between a mouse click event and a touch screen event on a numeric control.  The system in development will have a touch screen for most users but will also have a keyboard and mouse.  When selecting the numeric control via touch screen, a keypad pops up on screen.  However, when a user clicks in the numeric control, I do not want the keypad to pop up and only let the user enter a new value with the keyboard.  The LabVIEW (currently using LV 8.5.1) event structure treats both these events as the same.  Does anyone know of a way to achieve this?  Maybe even combining the LabVIEW event structure along with Windows API calls.

 

Thanks

0 Kudos
Message 1 of 2
(3,184 Views)
Not sure if there is a simpler way, but perhaps tracking the mouses position, or using the Mouse Entered event on the control.  If the mouse entered event occurs, disable the keypad for that control until the mouse leave event for the control is fired.
Jon D
Certified LabVIEW Developer.
Message 2 of 2
(3,168 Views)