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

AndroidAppmethodCode SnippetComponentDelphiFiremonkeyIOSOSXWindows

Build A Cross Platform Custom Layout List Component For Delphi Firemonkey

Delphi XE5 Firemonkey Free ListLayout ComponentChris Rolliston from Delphi Haven has a blog post from early 2013 where he builds a custom TLayout control that automatically aligns controls into a vertical list. Originally it looks like it was built for XE3 on Windows and OSX but I don’t see any reason why this same code won’t also work great in Delphi XE5, AppMethod, and Delphi XE6 on all platforms (including Android and IOS). The writeup mentions TFlowLayout, TGridLayout, TScaleLayout, and TScrollBox as being contenders for implementing a control list but ultimately they do not meet all his requirements for the vertical control list. Additionally, the blog post is a good tutorial on building custom Firemonkey components and basing them off of existing components like TLayout. Take notice of the ComponentPlatforms line at the top of the component source code and be sure to modify it to include Android and IOS in the list of platforms.

Head over and read the full blog post about building a custom TListLayout component in Delphi Firemonkey.

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

Related posts
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

C++BuilderDelphiFiremonkeyIOSLiveBindingsOSXWindows

TStringList and TFDMemTable Contribute To The Powerhouse That Is Cross Platform Delphi Development In FireMonkey

AndroidC++BuilderDelphiFiremonkeyIDEIOSOSXWindows

Massive Update With Tons Of Fixes For Delphi 10.4 Firemonkey On Android, IOS, MacOS, Windows, And Linux

Sign up for our Newsletter and
stay informed

Leave a Reply