0

I want to load a list of files and update a progress bar, but I get an error when updating the thumb position. The code is OK When I click the apply button - what causes the error?

-- update the progress bar with current file number
on set_progress new_value
  set the thumbposition of "progress" to new_value
end set_progress
juergen d
  • 201,996
  • 37
  • 293
  • 362
S. Cooper
  • 36
  • 4

1 Answers1

0

You just have to specify that "progress" is a scrollbar control. Refer to it as

scrollbar "progress"

instead of just

"progress" 

The working handler is;

-- update the progress bar on screen
on set_progress new_value
   set the thumbposition of scrollbar "progress" to new_value
end set_progress
splash21
  • 799
  • 4
  • 10