Hi Patrick,

>> Hmmm... tried doing the same in our MDI application and had no
problems
>> (the maximised MDI child forms didn't restore themselves when the
>> non-MDI form was created and shown).  What versions of Delphi and
>> Windows are you using?
>
>No I am referring to switching from one MDI form to another. D2, Win95
>
>============================================
>Patrick Dunford, Christchurch, NZ
>Voluntary Student Membership: Equal Representation For All
>http://patrick.dunford.com/

Yes, but I was replying to Darren, who wasn't

>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...
>
>Any words of wisdom?
>
>Darren

In an MDI application, all of the MDI child forms are controlled to be
either maximised or "normal"/minimised.  If you have one form maximised,
and you show another, the other will appear maximised as well, and if
you "restore" one of them, all will restore.  So if you have a form that
_can't_ be maximised (ie. BorderIcons doesn't include biMaximise) and
you switch to it, all the other MDI child forms will restore.  Maybe
that's the problem you ran into?  But it shouldn't trouble Darren as his
offending form has FormStyle = fsNormal.

I'm using Delphi 4 and Windows 98, so I don't know, maybe things are
different here.  Been using MDI since Delphi 2 though.

Cheers,

Carl Reynolds                      Ph: +64-9-4154790
CJN Technologies Ltd.             Fax: +64-9-4154791
[EMAIL PROTECTED]                DDI: +64-9-4154795
PO Box 302-278, North Harbour, Auckland, New Zealand
12 Piermark Drive, North Harbour Estate, Auckland, NZ
Visit our website at http://www.cjntech.co.nz/

application/ms-tnef

Reply via email to