Article View: borland.public.cppbuilder.nativeapi
Article #17268Re: Auto Close program
From: Remy Lebeau (TeamB)
Date: Tue, 01 Apr 2003 18:47
Date: Tue, 01 Apr 2003 18:47
14 lines
1545 bytes
1545 bytes
Simply assign an event handler to the OnIdle event and then call Application->Terminate(). However, do realize that OnIdle is triggered whenever there are no messages currently in the message queue to be read. It's possible that OnIdle will be triggered very early in your application's life-cycle, thus making it terminate itself right after starting. Gambit "Sky" <akeehuang@163.net> wrote in message news:3e899a48@newsgroups.borland.com... > Hi all, I want close my program while it in idle for > a moment, I try to use the Application->OnIdle, > but how to realize it, Any hint? TIA
Technical Details
Message-ID:
<3e89dfd7@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e899a48@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,3ba0af265b82bd56 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-01 11:00:41 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e899a48@newsgroups.borland.com> Subject: Re: Auto Close program Date: Tue, 1 Apr 2003 10:47:48 -0800 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3e89dfd7@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1049223127 207.175.226.26 (1 Apr 2003 10:52:07 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail