Page 1 of 1

Redraw ?? When using ChildManager

Posted: Sat Nov 13, 2004 7:12 pm
by 9339645
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:

Code: Select all

TOP
   A
   B
      B1
      B2
then I drag a node onto A, the tree expands (vertically) to accomodate the child of A, giving:

Code: Select all

TOP
   A
      A1
   B
      B1
      B2
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.

Posted: Wed Nov 17, 2004 9:06 pm
by Tom
We are sorry, this is not supported by teeTree2 at the moment. ie a non overlapping nodes with Top-Bottom; Left-Right ChildManagers