var
ANode : TTreeNode;
begin
ANode := TreeView.Items.GetFirstNode; //To add to the root
While {there are still items to add} do
begin
ANode := TreeView.Items.Add(ANode,'Whatever you''re adding');
// Do anything you like with ANode = the new node
end;
end;
HTH
Stephen
-----Original Message-----
From: Chrissy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 1 February 2001 8:56 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: TTreeView
Hi,
How do I select the node that I have just added to the tree view?
Chrissy.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"