partsInJob

Type: Integer

The partsInJob method of the ProgressBar control contains information for the ProgressBar control about the number of parts in the job.

When you set the partsInJob property followed by the partsDone property, the partsDone mapping method colors the progress bar with the parts that are done and displays the remainder that is to be done. For example, if you set the partsDone property to 25 when the partsInJob property is set to 100, the progress bar is a quarter colored, with 75 percent of the job remaining to be done.

When the application is running in thin client mode, use the thinClientUpdateInterval property to control how often the progress var will be redrawn as the percentage changes.

The following example shows the use of the partsInJob property.

showProgress(runningTotal: Integer;
             totalNumber:  Integer;
             message:      String) updating;
begin
    progressBar.partsInJob := totalNumber;
    progressBar.partsDone  := runningTotal;
end;