Progressbar.y read/write property


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

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Progressbar.y sample", 300, 600) local pb = ui.Progressbar(win) -- shows the window win:show() -- update user interface and increase Progressbar horizontal position repeat ui.update() pb.y = pb.y + 1 until not win.visible or (pb.y > 600)