> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Darren Bilby
> Sent: Thursday, 15 April 1999 20:41
> To: Multiple recipients of list delphi
> Subject: [DUG]: MDI Forms and Showmodal Hassles
>
>
> Okay, this is probably a stupid newbie question but I can't find an answer
> for it.
>
> I've got a MDI application running with a few MDI child forms maximised, I
> need a modal box to appear and then simply return. I basically just create
> the form then do a showmodal on it:
>
> Application.Createform(TChProdHistory, ChProdHistory);
> if (ChProdHistory.Showmodal = 1) then dostuff;
>
> so basically how I see it, it should show the form then return
>
> The problem is that when the form is created the currently open MDI Child
> forms all get 'restored' to a non maximised state which looks really ugly.
> I'm just unsure as to why the creating a non-MDI form (ie formstyle :=
> fsNormal) is forcing the all the MDI child forms to resize...
No, I have had similar experiences when switching MDI forms, the form that
was losing focus would minimise or shrink so that each time you switched to
a new MDI form you would see it sizing itself up to the full client area
each time. This which did not happen in Delphi 1 has put me off MDI forms
permanently and I now prefer to use pagecontrols instead. I guess they don't
work quite the same though.
============================================
Patrick Dunford, Christchurch, NZ
Voluntary Student Membership: Equal Representation For All
http://patrick.dunford.com/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz