mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: Show percents in caption of progress dialog
This commit is contained in:
parent
58bbab3334
commit
ebb60ffd2a
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue