Combobox.height readwrite


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

Setting Combobox.height does not impact its visual aspect, as this widget's height depends on its Combobox.fontsize property.

Example

--! luart-extensions import ui -- create a simple Window local win = ui.Window("Combobox.height sample", 320, 200) ui.Label(win, "font size :", 92, 34) local combobox = ui.Combobox(win, {"Item 1", "Item 2", "Item 3"}, 96, 100) combobox.selected = combobox.items[1] -- create a font style combobox local cb = ui.Combobox(win, { combobox.fontsize, combobox.fontsize+2, combobox.fontsize+4, combobox.fontsize+6, combobox.fontsize+8 }, 144, 30, 40) cb.selected = cb.items[1] -- change combobox.fontstyle upon selection function cb:onSelect(item) combobox.fontsize = item.text win:status("Combobox height = "..combobox.height) end win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible