> That is better.  What it does not do is resize the image.  I want
> to be able to resize the image to the
> 
> max(form size,area covered by shapes)
> 
> I have a list of shapes so can easily redraw them.  I want scroll
> bars when ever the canvas is larger than the image.  The image
> could, theoretically, get very big but it will not usually get bigger
> than about 3000x3000 (which is big enough).

I am still confused here about exactly how you want this to behave.

On one hand - you want to resize the image.   I'm assuming you 
mean to do this as a response to someone resizing the MDIChild
window that contains that image.  (right?)    So - the image is 
supposed to "scale" to fit the MDIChild.     But if this is what happens 
when will you EVER need the scroll bars?   The image will always
fit in the client area of the MDIChild and won't need to be scrolled.

On the other hand you want scroll bars when the "canvas is larger than
the image".    (I assume you mean the other way around - i.e.
when the image is larger than the canvas).   But if we do it this
way, what is the new size of the image suppose to be?   (This is 
what that last gadget did).

I am thinking here that maybe there is some OTHER event in your
program that makes the sizes of the images change (i.e. NOT 
only the resizing of the MDIChild container windows) and that
is the missing piece of the puzzle.

Please enlighten ...

-ns 



---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to