Window.enabled read/write property
Get or set the window ability to respond to mouse, keyboard and any other events. When set to false, disable the Window (the user will not be able to interact with it), and window's events won't be fired anymore.
Example
local ui = require "ui"
-- create a simple window
local win = ui.Window("Window.enabled sample", 320, 200)
win:show()
-- disable the window
win.enabled = false
win:status("Window is disabled !")
-- Quit after 3 seconds
async(function()
sleep(3000)
sys.exit()
end)
ui.run(win):wait()