OWL NExt - Knowledge Base

[ Home | Contents | Search | Next | Previous | Up ]

Changing the image associated with a node in a TTreeView

Date: 12/1/99
Time: 10:34:57 PM

Question:

In a TTreeView, I have an associated TImageList. How do I cause the image
associated with a given node to change when the user selects the node?

Answer:

In the event handler for the selection of the node, call
TTreeNode->SetSelectedImageIndex(int index),
where the index is the index into the TImageList of the image you wish to display.

Last changed: July 14, 2001