🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Auto reply a Message box

#17211
From: Torsten Franz (TeamBeer)
Date: Thu, 03 Apr 2003 08:40
14 lines
1555 bytes
Sky wrote:
> hi all, I want show a message box if a appointed event triggered,
> but when the message box has been shown for a moment,
> I want close it automatically.
>
> for example:
> I have show a modal message box with a 'OK' button using API,
> how to close it by user click 'OK' button or it has shown 2 minutes.
> Any hint?

Create your own message box class (derived from TForm for example)
which could contain a timer and in the timer event just close the window.

Torsten
Technical Details
Message-ID: <3e8bf361$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!ken-transit.news.telstra.net!news.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3e8bd4e4@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,68c102b10415d2c4
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-03 00:50:30 PST
From: "Torsten Franz \(TeamBeer\)" <Torsten_Franz@REMOVE.agilent.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e8bd4e4@newsgroups.borland.com>
Subject: Re: Auto reply a Message box
Date: Thu, 3 Apr 2003 10:40:02 +0200
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: 192.25.19.11
Message-ID: <3e8bf361$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1049359201 192.25.19.11 (3 Apr 2003 00:40:01 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!ken-transit.news.telstra.net!news.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail