🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Modal forms in modalless forms

#15092
From: Moshe Shahar
Date: Sun, 20 Jul 2003 12:13
47 lines
2693 bytes
Thanks.

I used the API MessageBox func and it solved this one.
But, I also use common dialogs for open save and colors
and I use the InputBox func.

I dont want to write everything in API :-(

I will be happy to get more ideas...

Mooshon.


"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3f15801b$1@newsgroups.borland.com...
>
> "Moshe Shahar" <msachar@tiogatech.com> wrote in message
> news:3f151179@newsgroups.borland.com...
>
> > I add a modalless form to my app with WS_EX_APPWINDOW ExStyle
> > and with the desktop window as parent.
> >
> > Now, I have 2 buttons on the task bar window.
> > One for the MainForm and one for the new form (lets call it MyForm).
> >
> > So, where is the problem ?
>
> There is no problem.  It is doing exactly what it is supposed to be doing.
> You altered a form to be an AppWindow and with a different parent window.
> Those are exactly the criteria needed for making a secondary form have its
> own TaskBar button and minimize/maximize independantly of the rest of the
> application.
>
> > The problem is that when I show a modal form or msg box
> > from the MyForm the MainForm pop up to the front and the
> > modal form appear on it, and when it closed the MyForm
> > return to the front.
>
> Modal forms, Application->MessageBox(), ShowMessage(), MessageDlg(), etc.
> are all tied to the main application, but you created a new form that is
> separate from it instead.  Try using just the Win32 API MessageBox()
> directly.
>
>
> Gambit
>
>
Technical Details
Message-ID: <3f1a8788@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!in.100proofnews.com!in.100proofnews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f151179@newsgroups.borland.com> <3f15801b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,34b8c1844f10f9f0
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-20 05:26:25 PST
Reply-To: "Moshe Shahar" <msachar@tiogatech.com>
From: "Moshe Shahar" <msachar@tiogatech.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f151179@newsgroups.borland.com> <3f15801b$1@newsgroups.borland.com>
Subject: Re: Modal forms in modalless forms
Date: Sun, 20 Jul 2003 15:13:43 +0300
Lines: 49
Organization: Tioga Technologies
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 62.90.94.245
Message-ID: <3f1a8788@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058703240 62.90.94.245 (20 Jul 2003 05:14:00 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!in.100proofnews.com!in.100proofnews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail