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.

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

Related posts
AndroidC++BuilderCode SnippetDelphiDemoFiremonkeyIOSOSXShowcaseWindows

Powerful Cross Platform Email App Sample In Delphi 10.4.1 FireMonkey For Android And IOS

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

Significant Update Available For Delphi FireMonkey 10.4.1 On Android, IOS, OSX, Windows, And Linux

C++BuilderDelphiIDEWindows

Professional SVG Icon Image List For Delphi 10.4 FireMonkey On Windows

AndroidC++BuilderDelphiFiremonkeyIOSLiveBindingsOSXWindows

Top Tips And Tricks To Speed Up Development With Delphi 10.4 FireMonkey On Android and IOS

Sign up for our Newsletter and
stay informed

Leave a Reply