0

我想加载文件列表并更新进度条,但在更新拇指位置时出现错误。代码正常当我单击应用按钮时 - 导致错误的原因是什么?

-- update the progress bar with current file number
on set_progress new_value
  set the thumbposition of "progress" to new_value
end set_progress
4

1 回答 1

0

您只需指定“进度”是一个滚动条控件。将其称为

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
于 2013-03-08T11:03:18.070 回答