Groupbox.childs readonly


Get a list of the Groupbox's widgets, as a table.
Each items in the list is a widget who's parent is the current Groupbox.

Example

Example

--! luart-extensions import ui --- create a centered Window local win = ui.Window("Groupbox.childs example", 460, 320) local gb = ui.Groupbox(win, "Groupbox", 0, 0, 280, 180) gb.border = true gb:center() -- create 5 labels on this Window for i = 1, 5 do ui.Label(gb, " Label"..i.." ", 120, (i+24)*i).bgcolor = 0x007acc end async(function() while true do for widget in each(gb.childs) do widget.bgcolor = 0xFF0000 sleep(800) widget.bgcolor = 0x007acc end end end) await win:showasync()