Panel:show() method
Show and activate the Panel (events can now be fired).
Return value
This function returns no value.Example
local ui = require "ui"
-- create a fixed Panel
local win = ui.Window("Panel:show() sample", "fixed", 320, 200)
-- create a Panel
local panel = ui.Panel(win, 0, 0, 100, 100)
panel.bgcolor = 0x00a0F0
panel.visible = false
panel:center()
-- create a Button
local button = ui.Button(win, "Show Panel")
button:center()
button.y = panel.y - 36
function button:onClick()
panel:show()
sleep(1000)
panel:hide()
end
ui.run(win):wait()