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

Delphi XE5 Firemonkey Free ListLayout Component | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSChris 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

Unleashing Creativity With Song Writer AI: A Deep Dive


How To Build Stable Diffusion Text To Image Prompts


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


Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores

Sign up for our Newsletter and
stay informed

Leave a Reply