[ Skill ] 在 Virtuoso 中显示 进度条 / 窗
https://www.cnblogs.com/yeungchie/
ProgressBar
- code
prog((ciw a)
ciw = hiGetCIWindow()
hiShowProgressBar(ciw 100000 0 "ProgressBar")
a = 0
while(a <= 100000
hiSetProgressBar(ciw a)
a++
)
hiHideProgressBar(ciw)
)
- show
ProgressBox
- code
prog((a)
hiDisplayProgressBox(
?name 'pb
?banner "ProgressBox"
?text "wait..."
?totalSteps 100000
)
a = 0
while(a <= 100000
hiSetProgress(pb a)
a++
)
)
- show
ProgressBox 需要注意一下
g_dboxID
,不能定义与 hiDisplayProgressBox 中name
(symbol)同名的局部变量,否则会影响到自动关闭进度窗口的操作。
待这个 ProgressBox 结束/关闭后,例程中pb
会被赋值为nil