Hi Mike,
We are defining our own expand method since the children are loaded
on-demand (there are potentially hundreds of thousands of children and
we found populating it initially was too slow), so I suppose that might
be the problem but I don't think so since it works most of the time and
is very short. It is a bunch of InsertItemByIndex calls followed by:self.CalculatePositions()
self.HideWindows()Is this correct to do?
Yes, I think that's the only way to do that. The main problem/issue
with CustomTreeCtrl with respect to the standard wx.TreeCtrl is the
presence of non-top level windows *inside* the tree control. Those
widgets have to be correctly repositioned every time something changes
in the tree (expansion, collapse, scroll, whatever), and it may happen
to see problems as you are noticing. Off the top of my head, I can't
see a better solution than yours.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/
···
On 4/23/07, Mike Rooney wrote: