Contents - Index - Previous - Next
OnTotalPercentDone Event
Applies to
TVCLUnZip component
Declaration
property OnTotalPercentDone: TTotalPercentDone = procedure(Sender: TObject; Percent: LongInt); of object;
Description
The OnTotalPercentDone event handler is triggered periodically to report the progress of the total bytes of all the files that are being processed. Percent represents a percentage between 1 and 100.
This event will be called not only during zipping and unzipping, but also while writing/saving files from an original zip file when modifiying an existing zip file. One tip here is to set a flag in the OnStartZipInfo event so that you know which situation this event is being called. Anything before the OnStartZipInfo event is a result of moving original files while anything after OnStartZipInfo will be a result of actual compression. Ofcourse when unzipping there is no saving of previous files so this is irrelavent.
During compression/decompression the percentage is based on the total number of bytes zipped/unzipped compared to the total number of bytes to zip/unzip. During saving of original files, the percentage is based on number of files saved compared to the total number of files to be saved.