Button.height read/write property


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

Example

local ui = require "ui" -- create a simple Window local win = ui.Window("Button.width sample", 320, 200) local button = ui.Button(win, "Growing !", 50) -- shows the Window win:show() -- update user interface repeat ui.update() button.height = button.height + 1 until not win.visible or button.height > 180