Type Function Library widget.* Return value none Revision Release 2024.3703 Keywords widget, button, ButtonWidget, setEnabled See also widget.newButton() ButtonWidget
Sets the ButtonWidget as either enabled or disabled.
object:setEnabled( isEnabled )
Boolean. Set this to false
if you wish to disable touch events on the button, true
if you wish to re-enable the button’s ability to receive touch events.
myButton:setEnabled( false ) -- The button will no longer receive touch events.