Groupbox.enabled read/write property
Get or set the groupbox ability and all its child widgets to respond to mouse, and any other events. When set to false, disable the Groupbox (the user will not be able to interact with the child widgets within it), and groupbox's events won't be fired anymore.
Example
local ui = require "ui"
-- create a simple Window
local win = ui.Window("Groupbox.enabled sample", 320, 300)
local groupbox = ui.Groupbox(win, "Disabled Groupbox", 70, 50)
ui.Button(groupbox, "Button disabled too..", 30, 50)
ui.Entry(groupbox, "Entry disabled...", 20, 90)
-- disable the groupbox
groupbox.enabled = false
win:show()
-- groupbox:onClick() event (won't be fired !)
function groupbox:onClick()
ui.info("You have clicked on the groupbox !!")
end
-- update user interface
repeat
ui.update()
until not win.visible