Adding nodes to a Delphi treeview
[ Related Articles and Replies ] [ DelphiLand Discussion Forum ]
Posted by Sal on January 08, 2003 at 18:11:11:
I have a treeview that has child nodes added dynamically. After a new node is added, I'd like it to be the last node so I can select it automatically with treeview.selected := treeview.items.item[i], where i = treeview.items.count - 1. SortType is stNone. The problem is that the new nodes aren't always added at the end.Sometimes they're at the beginning, other times in the middle. Is there a way to ensure new nodes are the last nodes, or failing that, to force selection of a new node regardless of where it is? Thanks. Using D5.
Related Articles and Replies:
[ Related Articles and Replies ] [ DelphiLand Discussion Forum ]
|
|