Radiobutton object

The Radiobutton widget provides a single-choice option within a group

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