Redraw ?? When using ChildManager

TeeTree VCL for Borland Delphi and C++ Builder.
Post Reply
Artimus
Newbie
Newbie
Posts: 18
Joined: Fri Oct 22, 2004 4:00 am

Redraw ?? When using ChildManager

Post by Artimus » 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:

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.

tom
Advanced
Posts: 211
Joined: Mon Dec 01, 2003 5:00 am
Contact:

Post by tom » Wed Nov 17, 2004 9:06 pm

We are sorry, this is not supported by teeTree2 at the moment. ie a non overlapping nodes with Top-Bottom; Left-Right ChildManagers

Post Reply