jerbear
New Member
If it's Not Broke, Don't Fix It.
Posts: 7
|
Post by jerbear on Aug 22, 2006 6:01:18 GMT -5
Hi, I hope this is a simple question.
Using VCLZip 2.20 and Delphi v5 and wanted to put a progress bar or something similar on screen while the zipping is in process.
Can anyone help, sample code etc...
many thanks.
Will be getting to the new VCLZip version soon I hope,
|
|
|
Post by Kevin on Aug 23, 2006 7:07:02 GMT -5
Hi Jerbear,
Welcome to the fourm.
Just create an event in your application for OnFilePercentDone and/or OnTotalPercentDone. All you have to do is set your gauge with the Percent parameter that is passed in by VCLZip. Its that simple..
procedure TVCLZipForm.ZipperFilePercentDone(Sender: TObject; Percent: Longint); begin Gauge1.Progress := Percent; end;
procedure TVCLZipForm.ZipperTotalPercentDone(Sender: TObject; Percent: Longint); begin Gauge2.Progress := Percent; end;
|
|
jerbear
New Member
If it's Not Broke, Don't Fix It.
Posts: 7
|
Post by jerbear on Apr 9, 2007 5:22:38 GMT -5
I know, I'm a bit late with my thanks....lol
But I got so caught up in work that I never ever got round to even trying this code.
But guess what....I'm doing it now.....
Thanks Kevin
better late than never.....
|
|