Tee tree resizing to fit host form - how please?

TeeTree VCL for Borland Delphi and C++ Builder.
Post Reply
bfrost
Newbie
Newbie
Posts: 1
Joined: Tue Aug 24, 2004 4:00 am
Location: England

Tee tree resizing to fit host form - how please?

Post by bfrost » Sun Oct 31, 2004 10:35 am

Hi,
I have a simple project that has a Tree client aligned in a panel and I want to get the tree to resize as the form is resized. I would like to fit the tree picture within the available space, this is to render the best possible image at various screen resolutions. I have tried using Zoom and this looks very promising - I can resize the from and the tree image follows this but I cannot work out how the margins should be calculated - the
horiz and very margins seem to change as the zoom occurs.

Is zoom the best way to do this? Could someone point me at how to keep the image fitting correctly within the form as the form is resized?

Many Thanks.
Brian

Post Reply