Radiobutton.height read/write property


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

Example

local ui = require "ui" -- radiobutton factory function -- creates vertical aligned radiobuttons local function choice(window,...) local y = 40 for text in each {...} do y = y + ui.Radiobutton(window, text, 46, y).height + 20 end end -- create a simple Window local win = ui.Window("Radiobutton:show() sample", 160, 270) -- add five vertical-aligned Radiobutton... choice(win, "Option 1", "Option 2", "Option 3", "Option 4", "Option 5") win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible