Groupbox.visible read/write property


Get or set the groupbox visibility on screen, a true value means that the Groupbox is shown, a false value means that the Groupbox is hidden.

Example

local ui = require "ui" -- create a simple groupbox local win = ui.Window("Groupbox.visible sample", 320, 200) local groupbox = ui.Groupbox(win, "LuaRT", 120, 70) local button = ui.Button(win, "Click to hide groupbox", 100, 10) groupbox.font = "Impact" groupbox.fontsize = 24 -- hides the groupbox and shows it again after 2 sec function button:onClick() groupbox.visible = false button.enabled = false sleep(2000) button.enabled = true groupbox.visible = true end win:show() -- update the user interface until the user closes the groupbox repeat ui.update() until not win.visible