Window:onHide() event
This event is fired when the window is hidden by the user (when clicking on the window close button) or when calling Window:hide() or setting the Window.visible property to false.
Return value
The event returns no value.Example
local ui = require "ui"
-- create a window
local win = ui.Window("Window:onHide() sample", 320, 200)
local label = ui.Label(win, "This window does nothing...", 100, 75)
-- set a onHide() event : display a message once the window has been hidden
function win:onHide()
ui.msg("bye bye !!")
end
win:show()
while win.visible do
ui.update()
end