Article View: borland.public.cppbuilder.nativeapi
Article #12638Re: Running an external application like a modal form
From: Remy Lebeau (TeamB)
Date: Mon, 24 Nov 2003 23:19
Date: Mon, 24 Nov 2003 23:19
31 lines
2336 bytes
2336 bytes
"Damian Vilchis" <damian@ininin.com.mx> wrote in message news:3fc28a38@newsgroups.borland.com... > Yes, but once finished the external application the > messages in the queue are processed. No, they are not. The message queue is not touched in any way unless you call ProcessMessages(), or a component calls ProcessMessages(), or you let execution flow back to the message queue itself normally. > Again the same, the form is painted inmediately no problem, but if > the user pressed a button in the calling form while the external > application is runningon this message is processed when the application > is finished and not discarted like in the modal case. Modal forms run a separate message queue while they are visible, processing all of the messages in the message queue until the form is closed. If you do not want there to be any pending messages after you return from the external application, then you'll just have to pump the queue manually to clear out and discard all pending messages. Which is not a good thing to do. > I solve the problem simply disabling the calling form before the > external application is launched, and enabling once the application is > finished. That is fine. Gambit
Technical Details
Message-ID:
<3fc2910d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fbea2f3$1@newsgroups.borland.com> <3fbea647$1@newsgroups.borland.com> <3fc24ad9$1@newsgroups.borland.com> <3fc25df4$1@newsgroups.borland.com> <3fc28a38@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,2cd4433069f943cd X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-24 15:40:07 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fbea2f3$1@newsgroups.borland.com> <3fbea647$1@newsgroups.borland.com> <3fc24ad9$1@newsgroups.borland.com> <3fc25df4$1@newsgroups.borland.com> <3fc28a38@newsgroups.borland.com> Subject: Re: Running an external application like a modal form Date: Mon, 24 Nov 2003 15:19:26 -0800 Lines: 33 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.137.149 Message-ID: <3fc2910d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1069715725 67.22.137.149 (24 Nov 2003 15:15:25 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail