Auto-resize tree using zoom

TeeTree VCL for Borland Delphi and C++ Builder.
Post Reply
bfrost
Newbie
Newbie
Posts: 4
Joined: Wed Oct 10, 2007 12:00 am

Auto-resize tree using zoom

Post by bfrost » Thu Jan 17, 2008 10:35 pm

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

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

Post by tom » Mon Jan 21, 2008 2:34 am

you can send it to tom @ steema.com

Post Reply