Touchscreen buttons


cjbassman2

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?

Link to comment
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.