Appologies if this seems like a repeat but I didn't spot my question going
out and responses have been zero so here is a second attempt.....

Is  there a quicker way to set the ImageIndex for specific nodes in a
TTreeView control?
I have an application which takes 30 Seconds to load if I set the ImageIndex
on individual nodes.
 
If I remove the code which sets the ImageIndex property it loads in a less
than a second.
 
My code looks like this:
 
procedure SetImage(iIndex: Integer; Node: TTreeNode);
  begin
    tLibExplorer.Items.item[Node.AbsoluteIndex].ImageIndex := iIndex;
    tLibExplorer.Items.item[Node.AbsoluteIndex].SelectedIndex := iIndex;
  end;
 
John Barrat

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to