Quite nice!
another question:
I am moving a node by adjusting the order field in the dbf and reloading the tree.
works fine but the node does not say selected.
the follwing code does nothing
How would I do this?
thisform.LoadTree
thisform.oTree.Nodes("_RT"+tran(x3)).selected=.t.
Tanks,
Peter
>In addition to Boris's tool, this project ( download #
16575 )demonstrates a "slide" and drop (click child node, hold down shift and drag to another "parent" node in tree view).
>
>I have a demo project that will drag a grand, a parent (when needed) and child node from one tree view to another. Email for the zip if you think it will help.
>
>>Has anybody (probably Cetin :-) done drag and drop in a tree view
>>
>>I have the treeview
>>Now I want the user to be able to select a branch or leave and drag it to another location in the same tree
>>
>>basically I need to get the parent_id from the selected branch and when it gets dopped get it's key and use it as parent key in the selected branch
>>
>>any ideas?
>>
>>thank you
>>
>>
>>[peter
Peter Cortiel