Change ListView AccessoryType image (FMX)

  

How can I change the AccessoryType image to something other than Checkmark, Detail, or More? I’m working in C++ Builder (Rio 10.3) with a Firemonkey app.

Here is the code i use to add an item. I can change the item image fine, i just don’t know how to change the accessory image (other than to those 3 built in options).

TListViewItem* itemHeader = Form1->ListView1->Items->Add();
Form1->ListView1->BeginUpdate();
itemHeader->Purpose = TListItemPurpose::Header;
itemHeader->Text = “My Header”;
Form1->ListView1->EndUpdate();

TListViewItem* item2Add = Form1->ListView1->Items->Add();
Form1->ListView1->BeginUpdate();
item2Add->Text = “My Item”;
item2Add->Detail = “My Item Details”;
item2Add->ImageIndex = 0; // sets the image
Form1->ListView1->EndUpdate();

Ideally i’d like to set the accessory to one of the images in my ImageList.

thanks,
russ

Comments are closed.