Frequently Asked Component Specific Questions
Options |
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>
TTreeList
Showing images in Treelist
Showing images in Treelist
To add images to the treelist, please first add a column to the TTreeList where you set TreeList.Columns[index].Image = true
The image displayed in the column for which property Image = true will then be displayed based on the imageindex set for the node.
Note that this way, only one image can be set per node, but with the Columns[index].Image you can choose in what column to set it. If you want to set different images in different columns, I’d recommend to use THTMLTreeList that is basically the same as TTreeList but allows to insert images via HTML tags (<IMG src=”idx:0”>) in text in any column and this way, you could set different images in different columns.