|
@@ -41,6 +41,7 @@ procedure ProgressProRun(AText: string; APos: Integer = 10;
|
|
|
ATextType: TProgressMemoType = pmtAdd; APosType: TProgressPosType = pptAdd);
|
|
|
procedure ProgressProTitle(ATitle: string);
|
|
|
function ProgressProHandle: THandle;
|
|
|
+procedure ProgressProHide; // 进度窗太大,会挡住其它提示条,所以隐藏先。
|
|
|
|
|
|
var
|
|
|
ProgressProForm: TProgressProForm = nil;
|
|
@@ -69,6 +70,13 @@ procedure ProgressProFree;
|
|
|
begin
|
|
|
if ProgressProForm <> nil then
|
|
|
begin
|
|
|
+ if not ProgressProForm.Visible then
|
|
|
+ begin
|
|
|
+ ProgressProForm.Visible := True;
|
|
|
+ ProgressProForm.Update;
|
|
|
+ end;
|
|
|
+
|
|
|
+
|
|
|
with ProgressProForm.Gauge1 do
|
|
|
begin
|
|
|
if (Progress <> MaxValue) then
|
|
@@ -176,4 +184,10 @@ begin
|
|
|
(ProgressProForm as TWinControl).PerForm(wm_SysCommand, sc_DragMove, 0);
|
|
|
end;
|
|
|
|
|
|
+procedure ProgressProHide;
|
|
|
+begin
|
|
|
+ if ProgressProForm <> nil then
|
|
|
+ ProgressProForm.Hide;
|
|
|
+end;
|
|
|
+
|
|
|
end.
|