Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview and private datasession
Message
From
26/11/2003 08:22:53
 
 
To
26/11/2003 07:52:31
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00853186
Message ID:
00853632
Views:
16
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform