🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8781

Re: MDI Form Maximized

#8781
From: Francesco
Date: Tue, 14 Sep 2004 18:29
48 lines
2317 bytes
Thanks Hans,

unfortunately it's like that and the only way to prevent this is to put
on FormResize event of the (Maximized form) this:

	WindowState = wsMaximized;


void __fastcall TForm2::FormResize(TObject *Sender)
{
  WindowState = wsMaximized;  
}


It works but in a very badly way cause while you open the 3rd form you
see the other one become normal and immeditely maximized again.

I was thinking to catch the message (VM_SIZE or something else...) to
prevent the resizing of the maximized form.

Any idea??

     Francesco


Hans Galema wrote:

> Francesco wrote:
> 
> > I've an application with a main form (fsMDIForm), a MdiChild form
> > open with WindowState maximized and another MdiChild with
> > WindowState normal.  The problem is that when I open the 2nd form
> > (the one in normal state) the first become also normal state. How
> > can I prevent this behaviour a have always in "background" the
> > maximized form?
> 
> The Multiple Document Interface is made in such a way that all
> fsMDIChild forms always have the same WindowState concerning
> wsMaximized and wsNormal.
> 
> So you never can have one fsMDIChild that is wsNormal and another
> fsMDIChild that is wsMaximized.
> 
> What you describe looks impossible for me. If there is already a
> fsMIDChild with wsMaximized and you create another one then the last
> one will become wsMaximised too.
> 
> Hans.
Technical Details
Message-ID: <41473887@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!amsnews01.chello.com!newshub3.home.nl!home.nl!news.cambrium.nl!news.cambrium.nl!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41470940$1@newsgroups.borland.com> <414714c6@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,def094ac3b744ea9
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Francesco" <.>
Subject: Re: MDI Form Maximized
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41470940$1@newsgroups.borland.com> <414714c6@newsgroups.borland.com>
User-Agent: XanaNews/1.16.3.1
NNTP-Posting-Host: 80.182.3.135
Message-ID: <41473887@newsgroups.borland.com>
Date: 14 Sep 2004 11:29:27 -0700
X-Trace: newsgroups.borland.com 1095186567 80.182.3.135 (14 Sep 2004 11:29:27 -0700)
Lines: 49
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!amsnews01.chello.com!newshub3.home.nl!home.nl!news.cambrium.nl!news.cambrium.nl!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail