Checkbox
From TargetWiki
A checkbox is a type of widget. All widget functions can also be called on a checkbox. Checkboxes are drawn on screen using a checkbox style which is set in the current theme.
Since a checkbox is a Lua object, calls should use the object:function() syntax. Also, all Lua object functions can also be called on a checkbox.
[edit]
Functions
- text()
- This returns the string containing the text displayed with the checkbox.
- settext( <string> )
- This sets the text displayed with the checkbox.
- checked()
- Returns the checked state.
- setchecked( <boolean> )
- Sets the checked state.
- exclusive()
- Returns the exclusive state. An exclusive checkbox, when checked, causes all other exclusive checkboxes with the same parent group to become unchecked.
- setexclusive( <boolean> )
- Sets the checkbox to be exclusive.
Categories: Lua | GUI | Widgets
