Groupbox.parent readonly property
Get the parent object that owns the Groupbox.
Example
local ui = require "ui"
-- create a simple window
local win = ui.Window("Groupbox.parent sample", 320, 200)
local groupbox = ui.Groupbox(win, "Hello World !", 130, 80)
local button = ui.Button(win, "Show Groupbox parent", 100, 10)
function button:onClick()
ui.info("Groupbox's parent is "..tostring(groupbox.parent))
end
win:show()
-- update the user interface until the user closes the Window
repeat
ui.update()
until not win.visible