My guess (and it is just a guess) is that you are running into an architectural characteristic of (MS) Windows that only one Window can have the input focus at any time, so you cannot have messages arriving simultaneously in different controls. I may be wrong, but I would be surprised if touch messages were any different from any other input message in this respect.
i.e. a multi-touch "surface" is confined to a input/interpretation by a single windowed control. I believe there is a dual/multi input framework available that sits on top of Windows but I think that it is a managed framework (i.e. .NET) and has some constraints anyway, being intended for educational/training solutions (instructor/educator sitting alongside student/pupil). Side-bar: Multi-touch trackbar eh? .... hmmm ... you're not implementing a transporter control interface are you... ?! TScotty.Create.BeamMeUp.... J From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Martin Searancke Sent: Monday, 24 January 2011 15:46 To: delphi Subject: [DUG] WM_TOUCH messages I have been cheating and implementing multi touch functionality in my D2009 application by hooking the various touch messages. I have this all working fine for gestures but on one window I want to get the actual touch messages so that a user can move multiple slider controls (TrackBar) at the same time. WM_TOUCH = $0240; procedure WMTouchNotify(var Msg: TMessage); message WM_TOUCH; RegisterTouchWindow(Handle, 0); This works fine for touch events on the window itself but not when touching controls (like the trackbar). What am I missing here - The event does not fire when touching any child controls on the form? I have tried calling... RegisterTouchWindow(MyTrackBarControl.Handle, 0); But this does not work. Thanks in advance. Martin -- Martin Searancke LightFactory +64 21 778 592
_______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe