Bambookit Home    Bambookit GUI Tutorial

Next   

II. GUI Basics

Chapter 10. Widgets Attributes




Enabled


Method signature

setEnabled = "[bool]"
[bool] the default is true

A disabled widget does not respond to any mouse click. The widget is disabled so the user cannot interact with it. Also changes the color to light gray to visually represent a disabled widget.

NOTE: If the parent is set to false all its children will be always false. You won't be able to override this value for children.

Examples

In this example we will be using a widget-container with two buttons children.

.. setEnabled="true"



.. setEnabled="false"



Next