Window.enabled readwrite


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

--! luart-extensions import 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) await win:showasync()