Touchscreen buttons

Recommended Posts

I've developed an application to work on a touchscreen. It works fine and when using a mouse the buttons depress up/down when they are 'clicked' ok. However when the operation is performed with a finger on the touchscreen the buttons don't generally go up/down. I've seen them move occassionally but generally they don't move. The button functions perfectly but it would be nice for the operators to get then response from the buttons. Any ideas?

Share this post

Link to post
Share on other sites

That has to do with how Windows sends mouse messages in a touch screen environment, or more to it, how the touchscreen driver does.  Either the MouseUp is coming so quickly after MouseDown that DAQFactory never gets a chance to draw the frame, or it is not sending a MouseDown at all.  More likely the first.  I don't have a good solution for you other than to check the touch screen driver software configuration for some sort of touch feedback.  Often you can get it to display something to confirm a click.  

You might improve the display by decreasing the Page's refresh rate.  The "box" is drawn as soon as you click, but is not erased until the screen refreshes.

You could also try using the DAQFactory OnLButtonDown and OnLButtonUp events described in 5.28 of the User's Guide.  You could then create your own feedback.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now