Window.y read/write property


Get or set the Window vertical position. The vertical position start from 0 (top side of the Desktop) and increase to the bottom side of the Desktop.

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Window.y sample") -- shows the Window win:show() -- update user interface and increase Window horizontal position repeat ui.update() win.y = win.y + 1 -- Sleep for 1ms to slow down the movement sys.sleep(1) until win.y > 800