Article View: borland.public.cppbuilder.nativeapi
Article #11246Re: How to make a window modal
From: Remy Lebeau (TeamB)
Date: Fri, 20 Feb 2004 20:07
Date: Fri, 20 Feb 2004 20:07
14 lines
1530 bytes
1530 bytes
"Martin Golm" <golm@gmx.de> wrote in message news:4036276C.5E202C7F@gmx.de... > How can this be done? Simply by adding a > GetMessage/TranslateMessage/DispatchMessage-loop > like the following? Yes. That is what the VCL's TForm::ShowModal() method does (amongst other things). Just make sure that you have a way to break out of the loop when you want to close the window without aborting the entire process as a whole. Gambit
Technical Details
Message-ID:
<40366739@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!diablo.netcom.net.uk!netcom.net.uk!news.tele.dk!news.tele.dk!small.news.tele.dk!news-out.visi.com!petbe.visi.com!news.octanews.net!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4036276C.5E202C7F@gmx.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,214f35d58464ad5 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-20 12:02:11 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4036276C.5E202C7F@gmx.de> Subject: Re: How to make a window modal Date: Fri, 20 Feb 2004 12:07:51 -0800 Lines: 16 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: 67.22.138.253 Message-ID: <40366739@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077307193 67.22.138.253 (20 Feb 2004 11:59:53 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!diablo.netcom.net.uk!netcom.net.uk!news.tele.dk!news.tele.dk!small.news.tele.dk!news-out.visi.com!petbe.visi.com!news.octanews.net!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail