Panel.enabled read/write property
Get or set the Panel ability to respond to mouse, keyboard and any other events. When set to false, disable the Panel (the user will not be able to interact with it), and Panel's events won't be fired anymore.
Example
local ui = require "ui"
-- create a fixed Panel
local win = ui.Window("Panel.enabled sample", "fixed", 320, 200)
-- create a Panel
local panel = ui.Panel(win, 0, 0, 100, 100)
panel.bgcolor = 0xffcc00
panel:center()
panel.enabled = false
-- panel:onClick event will never be fired
function panel:onClick()
ui.info("You have clicked on the Panel !")
end
ui.run(win):wait()