2013-03-08 2 views
0

파일 목록을로드하고 진행률 막대를 업데이트하고 싶지만 엄지 위치를 업데이트 할 때 오류가 발생합니다. 코드가 맞습니다. 적용 버튼을 클릭하면 오류가 발생합니다.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

"진행률"이 스크롤바 컨트롤임을 지정하면됩니다.

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

Ah! 처음으로 스크롤 막대를 사용했지만 이제는 알았습니다! –

관련 문제