2013-03-08 14 views
0

我想載入文件列表並更新進度欄,但在更新拇指位置時出現錯誤。代碼是OK當我點擊應用按鈕時 - 導致錯誤的原因是什麼?正在更新LiveCode進度條會給出錯誤

-- 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

你只需要指定「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 
+0

啊!第一次用滾動條,但現在我知道了! – 2013-03-08 11:23:20