Article View: borland.public.delphi.language.objectpascal
Article #32526Re: How to use a TProgressBar showing real data?
From: Andy Hill
Date: Fri, 22 Nov 2002 09:27
Date: Fri, 22 Nov 2002 09:27
23 lines
1822 bytes
1822 bytes
The DeerBear wrote: > Ever heard about Max and Min TProgressBar's properties? > > property Max: Integer; > > That means you can represent up to MaxLongInt positive values in ur progress > bar, so no problem. I think you'll find that the whole point of his question was that he doesn't know the Max value until the function is finished. I personally would probably just do something like keeping a count of the number of files found and do something like: Caption:=Caption+' - '+IntToStr(NumFiles)+' Files Found.'; At least it shows the luser that the code is still busy. -- Andy Hill. Quidquid latine dictum sit, altum sonatur.
Technical Details
Message-ID:
<3DDDF870.4030801@cairnwebnospam.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mailReferences:
<3DDCE658.AF38831E@inatel.br> <3ddcfd31$1@newsgroups.borland.com> <3DDD0FFC.8EC7107F@inatel.br> <3ddd06a5$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109d30,2cde5f40ba106d6b,start X-Google-Attributes: gid109d30,public X-Google-ArrivalTime: 2002-11-22 02:16:22 PST Message-ID: <3DDDF870.4030801@cairnwebnospam.com> Date: Fri, 22 Nov 2002 09:27:12 +0000 From: Andy Hill <a.hill@cairnwebnospam.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.delphi.language.objectpascal Subject: Re: How to use a TProgressBar showing real data? References: <3DDCE658.AF38831E@inatel.br> <3ddcfd31$1@newsgroups.borland.com> <3DDD0FFC.8EC7107F@inatel.br> <3ddd06a5$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 193.195.130.233 X-Trace: newsgroups.borland.com 1037957304 193.195.130.233 (22 Nov 2002 01:28:24 -0800) Lines: 24 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail