Page 1 of 1

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

Posted: Sat Aug 04, 2007 11:41 am
by 9345067
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?

Posted: Sun Aug 05, 2007 10:26 pm
by Tom
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

Posted: Mon Aug 06, 2007 8:28 am
by 9345067
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 :-)