Checkbox object

The Checkbox widget lets users toggle an option on or off

Event Description
Checkbox:onClick() Event fired when the user clicks on the Checkbox
Checkbox:onContext() Event fired when the user right click on the Checkbox
Checkbox:onCreate() Event fired when Checkbox has just been created
Checkbox:onDrop() Event fired when the Checkbox received a drag and drop content
Checkbox:onHide() Event fired when the Checkbox is hidden
Checkbox:onHover() Event fired when the user moves the mouse pointer over the Checkbox
Checkbox:onLeave() Event fired when the mouse cursor leaves the Checkbox
Checkbox:onMouseDown() Event fired when the user presses a mouse button over the Checkbox
Checkbox:onMouseUp() Event fired when the user releases a mouse button over the Checkbox
Checkbox:onShow() Event fired when the Checkbox is shown
Property Description Access Type
Checkbox.align Align the Checkbox relative to its parent readwrite boolean
Checkbox.allowdrop Controls whether the Checkbox is a drag and drop target readwrite boolean
Checkbox.checked Get/set whether the Checkbox is checked or not readwrite boolean
Checkbox.cursor Get/set the image of the mouse cursor as it hovers over the Checkbox readwrite string
Checkbox.enabled Controls whether the Checkbox responds to mouse and other events readwrite boolean
Checkbox.font Get/set the Checkbox font readwrite string
Checkbox.fontsize Get/set the Checkbox font size readwrite number
Checkbox.fontstyle Get/set the Checkbox font style readwrite table
Checkbox.height Get/set the Checkbox's height readwrite number
Checkbox.parent Get the Checkbox's parent widget readonly
Checkbox.text Get/set the Checkbox text content readwrite string
Checkbox.tooltip Get/set the Checkbox tooltip text readwrite string
Checkbox.visible Controls whether the Checkbox appears on screen readwrite boolean
Checkbox.width Get/set the Checkbox's width readwrite number
Checkbox.x Get/set the Checkbox's horizontal position readwrite number
Checkbox.y Get/set the Checkbox's vertical position readwrite number
Methods Description Return value
Checkbox:autosize() Autosize the Checkbox -
Checkbox:center() Center the Checkbox on the parent widget -
Checkbox:constructor() Checkbox object constructor
Checkbox:hide() Hide the Checkbox -
Checkbox:show() Show the Checkbox -
Checkbox:toback() Puts the widget to the back -
Checkbox:tofront() Brings the widget in front -