I've written 2 separate TreeView Controls both of which are slow.
Each consists of two parts - A Tree and a Leaf.
In one the Tree is populated by individual leaves, which are drawn
calculating parents and children etc. In this control, the TreeControl does
the work, storing Leaves.
Collapsing a node involves hiding each leaf in the appropriate collection,
and recalculating the lines etc.
In the other The tree has one Leaf and it is the Leaf that does the work.
Here each Leaf contains those leaves which are its children, and it draws
the lines etc depending on its children.
Collapsing a node simple means resizing the Node down to one line, and then
redrawing its parent Node. I have to iterate through the each parent.
This is even slower than the first method, but is much more elegant and
simpler code.
Will someone help me speed things up please.
If someone wishes to collaborate with me, I would be pleased to send them
the code.