Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey, Delphi Android, Delphi IOS

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.

Exit mobile version