Tab.fontsize read/write property


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

Example

local ui = require "ui" -- create a simple Window local win = ui.Window("Tab.fontsize sample", 320, 260) ui.Label(win, "font size :", 110, 10) local tab = ui.Tab(win, {"Item 1", "Item 2", "Item 3"}, 10, 30) tab.selected = tab.items[1] -- create a font style tab local cb = ui.Combobox(win, { tab.fontsize, tab.fontsize+2, tab.fontsize+4, tab.fontsize+6, tab.fontsize+8 }, 160, 6, 40) cb.selected = cb.items[1] -- change tab.fontstyle upon selection function cb:onSelect(item) tab.fontsize = item.text win:status("Tab font size = "..tab.fontsize) end win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible