I think I know the answer to this one...:-)

When you add a tree node I assume you use a function like TreeView.Items.Add
or AddChild etc.

These functions return the TTreeNode that was added so to select it, you
just go something like.

  aTreeNode := aTreeView.Items.Add(nil, 'This is the root node');
  aTreeNode.Selected := True;

or something like that...

Regards

Colin

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Chrissy
Sent: Thursday, 1 February 2001 8:56 pm
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"


######################################################################
Attention:
The information in this email and in any attachments is confidential.  
If you are not the intended recipient then please do not distribute, 
copy or use this information. Please notify us immediately by return 
email and then delete the message from your computer.
Any views or opinions presented are solely those of the author.
######################################################################
---------------------------------------------------------------------------
    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"

Reply via email to