Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving A TreeView Node
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01036288
Message ID:
01036332
Views:
17
>One way is remove node and add again with relative flag..
>
>tree.nodes.Add(loChild1, 3, node_key, node_text, node_image, node_selectedimage)
>
>MartinJ
>
>
>>You can't do this so easier.
>>One way: Make the KEY of Child 3 bigger than Child1 and smaller then Child2 and set the treeview.Sorted=.t.
>>Other way is to rebuild the whole treeview and make sure yo add Child3 Before Child2

But, when you remove the node, you lost all the children, or did I miss something?. And there is also a problem with node_image as far as i remember
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform