Label:show()method
Show and activate the Label (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("Label:show() sample", 320, 200)
local label = ui.Label(win, "LuaRT", 130, 80)
label.font = "Impact"
label.fontsize = 18
-- Spawn a Task to hide/show label every 500ms
async(function()
while true do
label:show()
sleep(500)
label:hide()
sleep(500)
end
end)
await win:showasync()