Look in the help under TTreeNode Add. There is an example.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ben none
Sent: Tuesday, 10 June 2003 10:42 am
To: Multiple recipients of list delphi
Subject: [DUG]: creating a treenodes during run-time

hi, how does one create treenodes during runtime
I know for buttons you can go

Procedure Button1OnClick(Sender : TObject);
var
    i : integer;
    Button : TButton;
begin
   Button := TButton.Create(self)
   inc(i);
   Button.Name := 'Button'+inttostr(i);
   Button.Parent := Form1;
end;

something like that.

but how does one do it for treenodes?

_________________________________________________________________
Gaming galore at  http://xtramsn.co.nz/gaming !

------------------------------------------------------------------------
---
    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"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.488 / Virus Database: 287 - Release Date: 5/06/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.488 / Virus Database: 287 - Release Date: 5/06/2003
 

---------------------------------------------------------------------------
    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"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to