Page 1 of 1

Auto-resize tree using zoom

Posted: Thu Jan 17, 2008 10:35 pm
by 10546988
Hi, I'm drawing a matrix of labelled circles for use as indicators. The matrix can vary in rows and columns as can the available tree view size. I've created a solution to automatically resize the tree to preserve its aspect ratio and to fit the matrix into the tree view using ZoomRect. Its a messy solution though requiring 2 timers to work.

I've packed my test program into a small Delphi project and wonder if anyone might take a look to see if there is a neater way of doing this? Just click the buttons to get different size rows and columns and resize the form to the tree resize itself.

Where can I send my zipped program (only 3k) ?
Thanks
Brian

Posted: Mon Jan 21, 2008 2:34 am
by Tom
you can send it to tom @ steema.com