Board index » delphi » Getting an image from an image list

Getting an image from an image list

Hi,

I am trying to get an image from an image list to be displated next to an
item on a TTreeView but I just can't seem to work it out.

Can someone please help. I can send my source code if needed.

Regards,
Nick

 

Re:Getting an image from an image list


Nick Wiseman <nwise...@webfront.net.au> wrote in article
<6u5d44$ls...@news.mel.aone.net.au>...

Quote
> I am trying to get an image from an image list to be displated next to an
> item on a TTreeView but I just can't seem to work it out.

Set the Images property of your TTreeView to the TImageList component.
Then look in the help for the following TTreeView properties
StateIndex
SelectedIndex
ImageIndex

These are the indexes of the node's image in the TImageList.
If this info is not enough, then post some source and I'll take a look ..

Cheers
- Graeme Vincent

Other Threads