Article View: borland.public.cppbuilder.nativeapi
Article #4448Re: Modal Form in MDI Application
From: Hans Galema
Date: Wed, 25 Jan 2006 15:12
Date: Wed, 25 Jan 2006 15:12
47 lines
2361 bytes
2361 bytes
saravanan wrote:
Please when replying trim quotes: do not send back all text and code I posted.
> ... Since the popup window is
> StayonTop window, it stays on top above all child windows.
Yes that is normal behaviour.
> Is there any
> way that, i can make the child windows to display above the popup window.
No. Not if that is fsStayOnTop.
> In other words, Only the window which invoked the popup window should be
> behind popup window. When the select the other child window, selected
> window should come on top of the popup window.
Then forget about MDI. Make all childwindows fsStayOnTop.
I do not understand why you do need this constuction.
Well you could stay with MDI and make the popupwindow fsMDIChild too.
But you better close (not destroy) the originating child too, because
forms that won't move and react are terrible. (Close() on a fsMDIChild
wil minimize it.).
TForm4 *Form = new TForm4(this );
Form->Show();
Close();
Enabled = false;
and in the popup:
TForm *Form = dynamic_cast<TForm*>(Owner);
if ( Form )
{
Form->Enabled = true;
Form->WindowState = wsNormal ;
}
Hans.
Technical Details
Message-ID:
<43d79531$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!195.92.193.196.MISMATCH!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43d777fd@newsgroups.borland.com> <43d78296@newsgroups.borland.com> <43d78ea0@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4e4d4e40aee3f82a X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 25 Jan 2006 16:12:07 +0100 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Modal Form in MDI Application References: <43d777fd@newsgroups.borland.com> <43d78296@newsgroups.borland.com> <43d78ea0@newsgroups.borland.com> In-Reply-To: <43d78ea0@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 145.98.201.248 Message-ID: <43d79531$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1138201905 145.98.201.248 (25 Jan 2006 07:11:45 -0700) Lines: 47 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!195.92.193.196.MISMATCH!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail