origin of tree has moved :(

TeeTree VCL for Borland Delphi and C++ Builder.
Post Reply
nick
Newbie
Newbie
Posts: 1
Joined: Tue Aug 14, 2007 12:00 am

origin of tree has moved :(

Post by nick » Mon Aug 20, 2007 12:30 am

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?????

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

Post by tom » Sun Aug 26, 2007 8:25 pm

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.

Post Reply