I'm setting image indexes like this:
with TN do
begin
ImageIndex := 1;
SelectedIndex := 1;
end;
Problem:
I use the same code for three icons in various places through my main unit (when I'm adding nodes). I set the icon with the same approach each time.
The first icon (which happens to be on a parent node), displays correctly. The second icon (which is the first child node) displays incorrectly until a third (second child) node is added, or until I click on the node with the incorrect image.
Suggestions?