Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving A TreeView Node
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
01036288
Message ID:
01036332
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform