Article View: borland.public.cppbuilder.multimedia
Article #708Re: How can I make an ordered periodically message using timer?
From: Maynard Philbrook
Date: Sun, 01 Jun 2003 20:21
Date: Sun, 01 Jun 2003 20:21
15 lines
1989 bytes
1989 bytes
you simply create or start a timer just prior the start of your lengthly code. in your code loop call the Application.ProcessMessages. in onTimer loop update a progress bar or something. when done. kill the timer "H. R." wrote: > Hi, > > How can I make an Ordered Message Producer in an application and process them? > For example suppose that you have a time consuming function in your application (and not respond during its calling) and wana have a timer which send and process some special messages. For example updating a progressbar or animating something.... > Creating a timer in a new initialized thread seems to be one of the solution way... But it does not work correctly...You can test it by a simple example written in BCB yourself.... > > Regards,
Technical Details
Message-ID:
<3EDA6067.19951E90@mindspring.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsswitch.lcs.mit.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!wn14feed!worldnet.att.net!207.217.77.102!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mailReferences:
<3eda4173$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,69759c14b1365cac
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2003-06-01 13:24:23 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsswitch.lcs.mit.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!wn14feed!worldnet.att.net!207.217.77.102!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail
From: Maynard Philbrook <UseThis.jamie12@mindspring.com>
Newsgroups: borland.public.cppbuilder.multimedia
Subject: Re: How can I make an ordered periodically message using timer?
Date: Sun, 01 Jun 2003 16:21:59 -0400
Organization: MindSpring Enterprises
Lines: 16
Message-ID: <3EDA6067.19951E90@mindspring.com>
References: <3eda4173$1@newsgroups.borland.com>
Reply-To: UseThis.jamie12@mindspring.com
NNTP-Posting-Host: 42.a8.28.eb
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Server-Date: 1 Jun 2003 20:24:13 GMT
X-Mailer: Mozilla 4.5 [en]C-CCK-MCD {TLC;RETAIL} (Win98; U)
X-Accept-Language: en