Re: Any Touch Screen gurus?
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Tue, 24 Jul 2007 15:29:43 -0400
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,Joseph M. Newcomer [MVP]
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
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- Any Touch Screen gurus?
- From: Simon
- Any Touch Screen gurus?
- Prev by Date: Re: Print / Preview CWinFormsControl
- Next by Date: Re: Any Touch Screen gurus?
- Previous by thread: Re: Any Touch Screen gurus?
- Next by thread: Re: Any Touch Screen gurus?
- Index(es):