Label.bgcolor readwrite


Get or set the Label background color (if not set, nil is returned, meaning the Label uses the parent widget background color).

Example

--! luart-extensions import ui -- create a simple Window local win = ui.Window("Label.bgcolor sample") local label = ui.Label(win, "Hello World !") label.fontsize = 32 label.bgcolor = 0x4060A0 label.fgcolor = 0xF0A030 label:center() win:show() -- update user interface repeat ui.update() until not win.visible