I'm trying to get interactive gesture recognition (specifically, zooming and panning) working for my Delphi / C++Builder 10.2 Tokyo app.
What I've done so far:
- Add a TGestureManager,
GestureManager1to my form. - Set the form's
Touch.GestureManagertoGestureManager1. - Leave everything under
Touch.Gesturesunchecked, because I want interactive gestures (zoom and pan), not "standard" gestures. - Make sure that
Touch.InteractiveGestures.igZoomis checked. - Assign an
OnGestureevent handler.
The OnGesture event handler is triggered as expected, but the event's EventInfo.GestureID (which is supposed to give the type of gesture - pan, zoom, etc.) is always 0.
What am I doing wrong?