How do I make a listview with an image, caption and subtext in Delphi FMX

To create a listview with an image, caption, and subtext in Delphi FMX, you can use the TListView control and set its ItemAppearance.ItemHeight property to a value larger than the default to make room for the subtext. Then, you can add items to the listview by creating TListViewItem objects and setting their properties.

Here is some sample code that demonstrates how to create a listview with an image, caption, and subtext in Delphi FMX;

This code creates an image list with three images, creates a listview and sets its ItemAppearance.ItemHeight property to a larger value to make room for the subtext, and then adds three items to the listview, each with a caption (stored in the Text property), subtext (stored in the Detail property), and an image from the image list.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *