First, put some ImageList controls in your form and fill them with
icons.
At design time, you can attach the TreeView to an ImageList
for storing node images:
TreeView1.StateImages :=ImageList1
TreeView1.Images :=ImageList1
(set this using Object Inspector)
Then, in runtime, you can assign and change node images
changing the index:
NewNode:=TreeView1.Items.Add(Nil, Edit1.Text );
NewNode.ImageIndex :=0;
NewNode.SelectedIndex :=1;
NewNode.StateIndex :=2;
Hope this helps.
-- alejandro.lavarello (at) gmail (dot) com