Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview and private datasession
Message
De
26/11/2003 08:22:53
 
 
À
26/11/2003 07:52:31
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00853186
Message ID:
00853632
Vues:
17
>Hi Gregory,
>
>>Think your mirror is a good idea. I will have to create two methods, one for creating a node and one for removing a node. These two methods will update a property or a cursor of the nodekeys that exist. Hence the NodeExists() function will not error any more
>
>To go further, I would suggest to do this with EXPANDED as well as with what should happen on nodeclick and the like.
>
>I'm sorry, I have done all this before, but I guess it's now to tricky for an example.
>
>Agnes


hi Agnes,

Done ;-)

I now keep an array (this.Nodes[65000]) which holds all keys that are in the treeview at any moment.

Changed method Expand to populate if not populated

Added method: NodeAdd()
Added method: NodeRemove()
Added Method: Clear()

Changed method NodeExists()

Changed NodeClick() : if not expanded, populate and expand
if expanded: Collapse

Added property : ChildrenRemoveOnCollapse: if set, the node's children are recursively removed when any node is collapsed. I don't really need that, but since I am busy learning the treeview anyway, thought it might be fun (and it was)

I'm a happy man now ;-)))))))))))))))))
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform