Treeview, move a node to a selected position (n element)

Started by stephan_35, November 20, 2009, 03:23:29 AM

Previous topic - Next topic

stephan_35

Hello,

I would like to set position of node inside the treeview position,
As you see in my screenshot, all node are positionned depending of buid order.

I would like to move node3 before node2 and node6 before node5 in this tree !

So my question is, is anobody has an idea to do this ?

The first way, is to delete all child node and make them again in the good order, but is there something more easier ???

Thanks for help

Best regards.
OpenDCL 6.0.0.6 / Editor 5.1.2.3  / Vista 32 Bits
Development of  specific tools for trades in AutoLisp - php - sql

Fred Tomke

Hi, stephan,

if you don't activate the drag&drop events it should work automatically. But I have not experiances in that. I want to control it by myself. That's why I use AddSibling. Delete the old one and add the same item on an other place. Have a look at AddSibling.

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

stephan_35

Hello Fred,

In fact, moving a node automatically delete itself in the tree !

And you've right : AddSibling seem to reply correctly of my search !

Thanks
Best regards
OpenDCL 6.0.0.6 / Editor 5.1.2.3  / Vista 32 Bits
Development of  specific tools for trades in AutoLisp - php - sql