Tab.height read/write property
Get or set the height of the Tab. The height starts from 0 (top side of the Tab) and increase to the bottom direction.
Example
local ui = require "ui"
-- create a simple Window
local win = ui.Window("Tab.height sample", 316, 246)
local tab = ui.Tab(win, {"LuaRT", "is", "fun !"}, 10, 40)
local inc_btn = ui.Button(win, "Increase Tab.height !", 15, 10)
local dec_btn = ui.Button(win, "Decrease Tab.height", inc_btn.x+150, inc_btn.y)
inc_btn.delta = 10
dec_btn.delta = -10
function inc_btn:onClick()
tab.height = tab.height + self.delta
end
dec_btn.onClick = inc_btn.onClick
-- shows the Window
win:show()
-- update user interface
repeat
ui.update()
until not win.visible