Redraw ?? When using ChildManager
Posted: Sat Nov 13, 2004 7:12 pm
I am making a drag and drop tree. If I do not adjust the tree (leave in "explorer" mode) the tree redraws itself fine. For example, if I have tree:
then I drag a node onto A, the tree expands (vertically) to accomodate the child of A, giving:
However, when I add the D7 code (borrowed from the TeeTree2 Demo):
SideAlign := TTreeTopBottomAlignChild.Create;
FTree.ChangeManager(SideAlign);
the tree does change to a 'top-to-bottom' tree (like an ORG chart), but when I drop a node onto A (with B children already there) then the A children are drawn on top of the B children.
This seems like a bug, but I was wondering if there is an easy way of fixing this or getting around it, short of manually drawing/positioning each node myself?? Thanks.
Code: Select all
TOP
A
B
B1
B2
Code: Select all
TOP
A
A1
B
B1
B2
SideAlign := TTreeTopBottomAlignChild.Create;
FTree.ChangeManager(SideAlign);
the tree does change to a 'top-to-bottom' tree (like an ORG chart), but when I drop a node onto A (with B children already there) then the A children are drawn on top of the B children.
This seems like a bug, but I was wondering if there is an easy way of fixing this or getting around it, short of manually drawing/positioning each node myself?? Thanks.