Checkbox.height read/write property
Get or set the height of the Checkbox area. The height starts from 0 (top side of the Checkbox) and increase to the bottom direction.
Example
local ui = require "ui"
-- checkbox factory function
-- creates vertical aligned checkboxes
local function choice(window,...)
local y = 40
for text in each {...} do
y = y + ui.Checkbox(window, text, 46, y).height + 20
end
end
-- create a simple Window
local win = ui.Window("Checkbox:show() sample", 160, 270)
-- add five vertical-aligned Checkbox...
choice(win, "Choice 1", "Choice 2", "Choice 3", "Choice 4", "Choice 5")
win:show()
-- update the user interface until the user closes the Window
repeat
ui.update()
until not win.visible