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 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi 10 Seattle Firemonkey Drag And Drop Android IOS | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi 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
DelphiDemoFiremonkeyLinuxOSXShowcaseWindows

AutoBlogAI: FireMonkey Client To Leverage LLMs And Generative AI For Blogging

DelphiFiremonkeyShowcaseUtilityWindows

Unleashing Creativity With Song Writer AI: A Deep Dive

DelphiFiremonkeyShowcaseWindows

How To Build Stable Diffusion Text To Image Prompts

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

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

Sign up for our Newsletter and
stay informed

Leave a Reply