Window:maximize() method


Maximize and activate the Window to the entire desktop.

Fixed Windows cannot be resized, minimized or maximized by the user. However it can still be done programmatically

Return value

This function returns no value.

Example

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