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

AndroidAppmethodC++BuilderCode SnippetDelphiDemoFiremonkeyIOSOSXWindows

Drag And Drop Tutorial With Source For Firemonkey In Delphi 10 Seattle On Android And IOS

Delphi 10 Seattle Firemonkey Drag And Drop Android IOSDeveloper Douglas Rudd has a drag and drop tutorial post up for Firemonkey Delphi 10 Seattle. The blog post contains sample source code, an explanation of how it is implemented, and a example project download. At it’s core it creates a list of TRectangles that are stored in an array. The TRectangles are parented to a TLayout and have a couple components inside them as well (like a TLabel). In the OnMouseDown event of each TRectangle it uses a trick via the TLayout.Root.Captured property to send the mouse movements to the TLayout. TLayout handles the mouse movements to move the TRectangle around the form. The example code works on all four supported platforms which are Android, IOS, OSX, and Windows. The code should also work with Appmethod and can probably be converted to C++Builder as well. We have another olderĀ post about drag and drop as well.

Head over and check out the full blog post about dragging and dropping controls in Firemonkey with Delphi 10 Seattle before downloading the example.

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