-
Notifications
You must be signed in to change notification settings - Fork 2
Checkbox
Benedict Allen edited this page Nov 15, 2015
·
2 revisions
The Checkbox is a 1x1 clickable object that toggles a check ("x") in its centre.
Extends Sheet
-
colour- The background colour. -
colour.checked- The background colour when checked. -
colour.pressed- The background colour when pressed. -
textColour- The text colour. -
textColour.pressed- The text colour when pressed.
Checkbox( number x, number y, boolean checked = false )Note, this element uses the
onPreDraw()andonMouseEvent()callbacks of Sheet.
Checkbox:onToggle( number button, number x, number y )Called when the checkbox is toggled.
Checkbox:onCheck()Called when the button is checked (in addition to onToggle()).
Checkbox:onUnCheck()
Called when the button is unchecked (in addition to onToggle()).
Checkbox.checked - boolean
Whether the checkbox is checked.
Checkbox:toggle()Toggles the state of the checkbox.
- Exception
- DynamicValueException
- ExpressionException
- IncorrectConstructorException
- IncorrectParameterException
- ParserException
- ResourceLoadException
- ThreadRuntimeException