Combobox.fontsize read/write property


Get or set the Combobox font size, a number that represent the font size in pixels.

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Combobox.fontsize sample", 320, 200) local combobox = ui.Combobox(win, {'Item 1', 'Item 2'}, 20,70) combobox.fontsize = 12 combobox.width = 260 combobox.text = "Hello World in '"..combobox.font.."' "..combobox.fontsize.."px" win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible