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.

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

Related posts
AndroidC++BuilderDelphiDemoFiremonkeyWindows

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

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

Sign up for our Newsletter and
stay informed

Leave a Reply