This event is particularly interesting when you want to initialize its properties.
Window:onRestored() event
This event is fired when the Window has been restored, by the user or just after a Window:restore() call.
Return value
The event returns no value.Example
local ui = require "ui"
-- create a simple window
local win = ui.Window("Minimize, maximize or restore me !")
function win:onMinimize()
ui.info("Window has been minimized !")
end
function win:onMaximize()
ui.info("Window has been maximized !")
end
function win:onRestore()
ui.info("Window has been restored !")
end
-- update user interface
ui.run(win):wait()