我想加载文件列表并更新进度条,但更新拇指位置时出错。代码没问题当我单击应用按钮 - 导致错误的原因是什么?
-- update the progress bar with current file number
on set_progress new_value
set the thumbposition of "progress" to new_value
end set_progress
答案 0 :(得分:0)
您只需指定“progress”是滚动条控件。将其称为
scrollbar "progress"
而不仅仅是
"progress"
工作处理程序是;
-- update the progress bar on screen
on set_progress new_value
set the thumbposition of scrollbar "progress" to new_value
end set_progress