Chrissy
I'm probably misunderstanding what you are trying to do.
You have some MDIChild windows - presumably not maximised -
and you want to programmatically resize them to fit the
shapes you're drawing on them - is that right?
Is the problem "how to resize" - or is it "how to know
the right size for your shapes"?
If the problem is "how to resize" - you can just change
the width and height properties of the child.
I created a little MDI app that does this. Use
File|New to create some mdi children - then use
the right mouse menu in the children to make them
larger or smaller.
The project for this is here:
http://roserox.co.th/dugnz/chrissy.zip
Note that it behaves strangely if you do the resize
thing on maximised MDI children so probably you want
to avoid that.
If the problem is knowing the right size for your
shapes I think we need more information about the
stuff you're drawing on the form.
Hope this helps - but as I say - I suspect I'm missing
what you are really asking.
-ns
----- Original Message -----
From: "Chrissy R" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Wednesday, February 07, 2001 19:19
Subject: Re: [DUG]: MDI Form Size
> I still have no idea how to do this - can anyone help please.
>
> Chrissy.
>
>
> ----- Original Message -----
> From: Chrissy R <[EMAIL PROTECTED]>
> To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
> Sent: Wednesday, February 07, 2001 12:48 PM
> Subject: [DUG]: MDI Form Size
>
>
> > Hi,
> >
> > I have some MDI forms in my application. I am drawing shapes
> > on these forms and they are redrawing correctly. What I cannot
> > do is resize the forms when the shapes are outside the current
> > area. I can make scroll bars appear but I cannot scroll the form.
> > How should I do this?
> >
> > Chrissy.
> >
> >
>
> --------------------------------------------------------------------------
-
> > 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"
> >
>
>
> --------------------------------------------------------------------------
-
> 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"
---------------------------------------------------------------------------
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"