How do I add a node as first member of children, not last?

TeeTree VCL for Borland Delphi and C++ Builder.
Post Reply
achristouio
Newbie
Newbie
Posts: 21
Joined: Mon Jan 23, 2006 12:00 am

How do I add a node as first member of children, not last?

Post by achristouio » Sat Aug 04, 2007 11:41 am

I want to add a new node as top member of the children list.

In treeview you had 'addobjectfirst' which did this.

Hos do I move the newly added node to the top when addobject has added it to the end of list?

tom
Advanced
Posts: 211
Joined: Mon Dec 01, 2003 5:00 am
Contact:

Post by tom » Sun Aug 05, 2007 10:26 pm

the position of a node is determined by its brotherindex. You can change this value to move a node, eg : BrotherIndex := 0 will move the node to the top.

Regards,
tom

achristouio
Newbie
Newbie
Posts: 21
Joined: Mon Jan 23, 2006 12:00 am

Post by achristouio » Mon Aug 06, 2007 8:28 am

Tom wrote:the position of a node is determined by its brotherindex. You can change this value to move a node, eg : BrotherIndex := 0 will move the node to the top.

Regards,
tom
Thanx!
We learn new methods :-)

Post Reply