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() sleep(1500) win:show() end -- Show the window and update user interface asynchronously ui.run(win):wait()