Search code examples
delphigesturemulti-touch

Does Delphi 10 support multi-touch in traditional (non MetroUI) win 32/64 applications?


Does Delphi 10 support multi-touch in traditional (non MetroUI, non-FireMonkey) win 32/64 applications?

I have researched this (and tried it) and it doesn't work. I would think I should be able to do the following:

  1. new Win32 VCL application
  2. add a gesture manager to the form
  3. assign the gesture manager to the form
  4. go into the form's Touch.InteractiveGestures and include igZoom.
  5. add a gesture handler event.
  6. run the application on a tablet supporting Multi-touch.
  7. try a zoom gesture

I would expect the pinch/zoom gesture should fire the event after the gesture has ended event with a code indicating it recognized the zoom event. Instead, it fires indicating a gesture ID of 0 (unrecognized).

Why doesn't this work?


Solution

  • Handle the OnGesture event and recognize the gestures yourself.