Progressbar:show()method
Show and activate the Progressbar (events can now be fired).
Return value
This function returns no value.Example
--! luart-extensions
import ui
-- create a simple Window
local win = ui.Window("Progressbar:show() sample", 320, 200)
local pb = ui.Progressbar(win)
pb.position = 50
pb:center()
-- Spawn a Task to hide/show pb every 500ms
async(function()
while true do
pb:hide()
sleep(500)
pb:show()
sleep(500)
end
end)
await win:showasync()