>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