Page 1 of 1

origin of tree has moved :(

Posted: Mon Aug 20, 2007 12:30 am
by 10546466
Hi,

When designing my tree with the zoom level at 100%, it correctly displayed on my form (the tree components was set to 100 px wide by 200 high).

When I set the zoom level to 200%, the origin of the tree has moved somehow - when I open up the designer, the origin is set to (-600,-200), and the tree appears in the bottom right of the designer.

Worse, there the tree component (on the form) now has scrollbars, before there were none.

What has happened? How can I reset the origin of the tree?

thanks.

Edit: The width and height as reported in the Delphi Property inspector don't seem to match the width and height if I export the tree to a text file.

eg width/height is 200/335, but in the exported text file it's 847/1600! What is going on here?????

Posted: Sun Aug 26, 2007 8:25 pm
by Tom
TeeTree cuts -by design- white space at the top and left of the page. Setting the PAGEBOUNDS define might solve your issue. (see {$I PAGEBOUNDS} at top of teetree.pas

Regards,
tom.