ProgressSet

首页  后退  前进

ProgressSet
down2

ProgressSet

设置已创建进度条窗口的状态和(或)文本.

 

ProgressSet ( percent [, "subtext" [, "maintext"]] )

参数

percent

进度百分比(0 到 100.).

subtext

[可选] 进度条下方的文字, 正常字体.

maintext

[可选] 进度条上方的文字, 文字黑粗体.

返回值

None.

备注

注意子文本参数在主文本参数之前.

 

函数示例

Example()
Func Example()
    ; Display a progress bar window.
    ProgressOn("Progress Meter", "Increments every second", "0%")
    ; Update the progress value of the progress bar window every second.
    For $i = 10 To 100 Step 10
        Sleep(1000)
        ProgressSet($i, $i & "%")
    Next
    ; Set the "subtext" and "maintext" of the progress bar window.
    ProgressSet(100, "Done", "Complete")
    Sleep(5000)
    ; Close the progress window.
    ProgressOff()
EndFunc   ;==>Example

----------------------------------------

 

该函数可以通过命令调用 exect

参见:

ProgressOff, ProgressOn

例子
copy

exect=ProgressOn('Измеритель','Увеличивается','0~~процентов') <FOR> 1 <TO> 5 exect=ProgressSet(:INDEX:*20,:INDEX:*20&'~~процентов')&Sleep(1000) <NEXT> exect=ProgressOff() ;; 示例栏进度

up2

tcimage © Аверин Андрей для Total Commander Image Averin-And@yandex.ru