Tee tree resizing to fit host form - how please?
Posted: 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
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