UIOBJECT CheckButton

CheckButton (inherits from ) comprises a box beside a text label. Interacting with either the box or label toggles the button state between checked and not checked appearances.

Lua
With "CheckButton" as the first argument in

XML
With a element in an XML file.

Handlers
CheckButton does not introduce any new handlers, but inherits from Button. Notably, its method reflects the new state during Button's OnClick handler.

Examples
The following example provides a basic CheckButton inheriting a common template to configure its default appearance.

The following example creates a "checkbox-factory function" to automate several steps (but could be substituted using a FramePoolMixin):