-
Notifications
You must be signed in to change notification settings - Fork 2
Button
Benedict Allen edited this page Nov 15, 2015
·
5 revisions
The Button is a clickable object with word wrapped text (default centre aligned).
Extends Sheet
-
colour- The background colour. -
colour.pressed- The background colour when pressed. -
textColour- The text colour. -
textColour.pressed- The text colour when pressed. -
horizontal-alignment- The horizontal alignment. -
horizontal-alignment.pressed- The horizontal alignment when pressed. -
vertical-alignment- The vertical alignment. -
vertical-alignment.pressed- The vertical alignment when pressed.
Button( number x, number y, number width, number height, string text )Note, this element uses the
onPreDraw()andonMouseEvent()callbacks of Sheet.
Button:onClick( number button, number x, number y )Called when the button is clicked.
onHold( number button, number x, number y )Called when the button is held.
- Exception
- DynamicValueException
- ExpressionException
- IncorrectConstructorException
- IncorrectParameterException
- ParserException
- ResourceLoadException
- ThreadRuntimeException