Progressbar:advance(step)method
Advances the Progressbar position.
Parameters
Parameters
step
Aninteger value indicating the amount of position to advance.
Return value
This function returns no value.Example
--! luart-extensions
import ui
-- create a simple window
local win = ui.Window("Progressbar.range sample", 320, 200)
local pb = ui.Progressbar(win)
win:status("")
pb:center()
win:show()
-- update user interface and increase Progressbar progression
repeat
pb:advance(1)
win:status("Step ".. pb.position)
ui.update()
until pb.position == 100