Groupbox:center() method
Centers the Groupbox on the parent widget.
Return value
This function returns no value.Example
local ui = require "ui"
-- create a simple Window
local win = ui.Window("Groupbox:center() sample", 320, 270)
local gb = ui.Groupbox(win, "Hello LuaRT !")
ui.Button(win, "Center Groupbox", 112, 240).onClick = function (self)
gb:center()
end
win:show()
-- update the user interface until the user closes the Window
repeat
ui.update()
until not win.visible