Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Sep : Re: Using OnWork Begin For Generating A Progress Bar

www.cryer.info
Managed Newsgroup Archive

Re: Using OnWork Begin For Generating A Progress Bar

Subject:Re: Using OnWork Begin For Generating A Progress Bar
Posted by:"Francis" (franc..@taconic.net)
Date:Tue, 11 Sep 2007 13:34:38

Thanks Gambit,

I'll try using XOVER and estimating

estimate the progress bar based on

multiple calls to XOVER ?

by breaking up the groupmin and groupmax into

appropriate number of calls

somewhere between 1 XOVER call and 100 XOVER calls

based on the total number of headers to be gotten


    // Sample Code I'll Try

    IdNNTP1.SelectGroup(selected_group);

    allmessages := inttostr(groupmin) + '-' +  inttostr(groupmax div 2);
    IdNNTP1.XOVER(allmessages, listofarticles);
   ProgressBar1.position := 50;

    allmessages := inttostr((groupmax div 2)+1) + '-' +  inttostr(groupmax);
    IdNNTP1.XOVER(allmessages, listofarticles);
   ProgressBar1.position := 100;


I believe this is what your getting at


For the groups I''ll have to store the number of groups recieved last time
and use that aas an
estimate the 2nd and subsequent times sort of a self tuning progress bar

Any other thoughts on the matter anyone? please chime in

Sincerly Frank Bishop

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive