Главная страница | назад





Article #15330: Changing the image associated with a node in a TTreeView

 Question and Answer Database
FAQ330C.txt Changing the image associated with a node in a TTreeView
Category :OWL
Platform :All
Product :BC++ 5.x
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.
7/2/98 10:32:32 AM

Last Modified: 01-SEP-99