Stephen
I have tried your suggestion and it gives me the same result.
> if (TreeViewCompts.Items.Count = 0) then
> begin
> {Add the root node}
> TreeViewCompts.Items.Clear; {remove any existing nodes}
> Node := TreeViewCompts.Items.Add( NIL ,Name); {Addthe root node}
> end;
This is the tree structure I'm after:
+Form1
+TLabel
-Label1
-Label2
+TMemo
-Memo1
-Memo2
+TPanel
-Panel1
I'm currently getting:
+Form1
+TLabel
-Label1
-Label2
+TMemo
-Memo1
+TMemo
+TPanel
-Panel1
Cheers
Chris
---------------------------------------------------------------------------
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"