Progressbar.range readwrite


Get or set the Progressbar progression range. The range value is a proxy table with the following fields :

Example

--! luart-extensions import ui -- create a simple window local win = ui.Window("Progressbar.range sample", 320, 200) local pb = ui.Progressbar(win) pb.range = { 0, 3 } win:status("") pb:center() -- Spawn a Task to increase Progressbar progression async(function() repeat pb:advance(1) win:status("Step ".. pb.position) sleep(1000) until pb.position == 3 end) await win:showasync()