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.

Drag And Drop Tutorial With Source For Firemonkey In Delphi 10 Seattle On Android And IOS by Delphi XE5 XE6 XE7 XE8 10 Seattle Berlin Firemonkey, Delphi Android, Delphi IOS is licensed under a Creative Commons Attribution 4.0 International License.

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
Delphi 10 Seattle XE7 XE8 Firemonkey IOS9 Workaround
Building IOS9 Apps With Firemonkey In Delphi XE7, XE8, and Delphi 10 Seattle

Developer Sarina DuPont from Embarcadero has a couple blog posts up talking about IOS 9 support in Delphi XE7, Delphi...