CheckBox
A small box that can be checked or unchecked by users. It’s used to toggle something on or off in an application, like enabling or disabling a feature or selecting options.
local check = CheckBox(text)
Properties
- setOnCheck(callback)
Executed when checked. Arguments passed include self and state.
- setIcon(path)
Sets an icon on the check box
checkout Using resources
- setIconSize(width, height)
Sets the icon size
- setToolTip(text)
Tooltips are brief informational messages that appear when the user hovers the mouse pointer over the tab
- getTooltip()
Returns the tooltip text
- setToolTipDuration(check: bool)
Set how long the tooltip displays
- getCheck()
Returns check status; true or false
- setCheck(check: bool)
Sets the box to be checked or not
- setText(text)
Sets the check box text
- getText()
Gets the check box button