Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidAppmethodCode SnippetDelphiDemoFiremonkeyIOSOSXWindows

Get The Control At Each Multitouch Point In Delphi XE7 Firemonkey On Android And IOS

Delphi XE7 Firemonkey Get Each Multi Touch Control At Point Android IOSDeveloper Simon Stuart from LaKraven Studios has a two part article posted which demonstrates interacting with multiple controls using multi touch at the same time in Delphi XE7 Firemonkey. There are multiple code snippets and a download download for you to check out. Basically in the example you can touch each control with a finger at the same time and move them around. The code snippet breaks the OnTouch event out into separate events which are TTouchAction.None, TTouchAction.Up, TTouchAction.Down, TTouchAction.Move, and TTouchAction.Cancel. The other really useful code in here is the functions GetControlAtPoint and GetControlsAtEachTouchPoint. Those are the functions you need to find out what control is under each touch point. You should really read through both articles to familiarize yourself with how multitouch works and what you might have to work around as the TTouchAction.Up isn’t always fired in order (but Simon provides a work around). Stay tuned for the third article from Simon on the subject. This code should also work with Appmethod.

Head over and check out Working With Multi Touch Input In Delphi XE7 (Part1).

And then head over and read Working With Multi Touch Input In Delphi XE7 (Part2) before downloading the included source code demo.

close

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts
AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes

DelphiIDEShowcaseWindows

Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores

DelphiFiremonkeyIDEIOSOSXWindows

DelphiCon 2020 FireMonkey Sessions Available Starting November 19

AndroidC++BuilderDelphiDemoFiremonkeyWindows

Powerful Commercial Gorilla3D Framework Upgraded For Delphi FireMonkey On Windows And Android

Sign up for our Newsletter and
stay informed

Leave a Reply