Window:hide() method


Hide and deactivate the Window (events can no longer be fired).

Return value

This function returns no value.

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Window:Hide() example", "fixed", 150, 90) local button = ui.Button(win, "Hide me !", 35) function button:onClick() win:hide() ui.update() sys.sleep(1500) win:show() end -- shows the Window win:show() -- update user interface repeat ui.update() until not win.visible