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

AndroidAppmethodCode SnippetComponentDelphiDemoFiremonkeyIOSOSXWindows

TreeView With Images Demo Source Code For Delphi XE7 Firemonkey On Android And IOS

Delphi XE7 Firemonkey TreeView ImagesDeveloper Denis Vasilyev has a blog post up in Russian with a tutorial for creating TTreeViewItems with images in Delphi XE7 Firemonkey. Basically the blog post talks about how in the Delphi VCL library you would use a TImageList to handle the images in a TTreeView. However, Firemonkey has a different architecture which is it supports parent and child components. The tutorial shows how to create image controls at runtime and add them as children of the TTreeViewItem. It also shows how to do that with a TButton and a TEdit as well. The functionality in the demo source code only shows one level deep in the TTreeView but the same thing applies regardless of how many levels your TTreeView has. The demo has full source code and should work on Android, IOS, OSX, and Windows. Additionally, it compiles in Appmethod as well. I’d also recommend using a TRectangle w/ a bitmap because it is a lighter control instead of a TImage. Here’s some sample code from the demo showing the runtime object creation:

Head over and check out the full blog post about creating TTreeViewItems with images in Delphi XE7 Firemonkey.

Mirror: You can also download the source code for the demo directly right here.

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

Related posts
AndroidC++BuilderCode SnippetDelphiDemoFiremonkeyIOSOSXShowcaseWindows

Powerful Cross Platform Email App Sample In Delphi 10.4.1 FireMonkey For Android And IOS

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

Significant Update Available For Delphi FireMonkey 10.4.1 On Android, IOS, OSX, Windows, And Linux

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

Sign up for our Newsletter and
stay informed

Leave a Reply