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