RadioButton

This functions as a button that allows toggling between being selected (checked) or deselected (unchecked). Generally, these buttons offer users a choice among several options where only one can be selected at a time. Within a set of radio buttons, selecting a new option automatically deselects the previously chosen one.

Properties

local check = RadioButton(text)
setOnCheck(callback)

Executed when checked. Arguments passed include self and state.

setIcon(path)

Sets an icon on the radio button

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

setToolTipDuration(duration)

Set how long the tooltip displays

getToolTip()

Returns the tooltip text

getCheck()

Returns check status; true or false

setCheck(check: bool)

Sets the box to be checked or not

setText(text)

Sets the radio button text

getText()

Gets the radio button button