Re: Any Touch Screen gurus?



Touch screens are usually considered "pointing devices" and thus it is unlikely you will
see much difference between what a touch screen and a mouse do as far as moving the
cursor. In addition, tapping a finger on the screen usually generates a mouse-click
event, but exactly what happens depends on the details to the touch screen and its driver.
So nominally, touching and dragging will generate WM_MOUSEMOVE (OnMouseMove) events, and
some other action will result in a WM_LBUTTONDOWN (OnLButtonDown) event. Then in some
cases (such as the touch pad on my laptop), certain regions can be programmed to behave as
scrollbars, mouse wheels, etc., but that's up to your driver and how it is configured.

You've already been pointed at the Scribble tutorial. But you also need to know about
what your touch screen does in terms of taps, double-taps, etc., but if it does respond,
they will most likely look like WM_LBUTTONDOWN and WM_LBUTTONDBLCLK.
joe

On Tue, 24 Jul 2007 19:08:22 +0200, "Simon" <spambucket@xxxxxxxxxxx> wrote:

Hi,

I need to write a very simple application for a touch screen.
As far as I know a touch screen is the same as a mouse.

So any messages I will receive will be the same as any onclick(..) messages.

Am I right?

Would you know where I could find a tutorial or even an example?
This is for a touch screen computer, not a PDA.

Many thanks in advance

Simon
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.