Progressbar.height read/write property


Get or set the height of the Progressbar area. The height starts from 0 (top side of the Progressbar) and increase to the bottom direction.

Example

local ui = require "ui" -- create a simple Window local win = ui.Window("Progressbar.height sample", 360, 200) local pb = ui.Progressbar(win) pb:center() local inc_btn = ui.Button(win, "Increase Progressbar.height !", 15, 10) local dec_btn = ui.Button(win, "Decrease Progressbar.height", inc_btn.x+inc_btn.width+10, inc_btn.y) function inc_btn:onClick() local delta if self == inc_btn then delta = 10 else delta = -10 end pb.height = pb.height + delta end dec_btn.onClick = inc_btn.onClick -- shows the Window win:show() -- update user interface repeat ui.update() until not win.visible