ADD: Show percents in caption of progress dialog

This commit is contained in:
Alexander Koblov 2009-01-30 19:08:52 +00:00
commit ebb60ffd2a

View file

@ -100,6 +100,7 @@ procedure TfrmFileOp.FormShow(Sender: TObject);
begin
sEstimated:='';
sFileName:='';
Hint:= Caption;
pbFirst.Position:=0;
pbSecond.Position:=0;
pbFirst.Max:=1;
@ -152,7 +153,10 @@ begin
pbFirst.Invalidate;
if bp2 then
pbSecond.Invalidate;
if bp2 then
Caption:= IntToStr(iProgress2Pos) + '% ' + Hint;
if sEstimated<>lblEstimated.Caption then
begin
lblEstimated.Caption:=sEstimated;