Websites Navigation: Airbit | Shop | m-shell.net
Languages: EN | DE

Class abgui.RadioButton

is abgui.Button is abgui.Label is abguibase.Widget
A radio button, cyclically linked with other radio buttons

Constructor

function init(text=, group:abgui.RadioButton=null, align=LEFT|VCENTER)
Overridesabgui.Button.init()
Initialize a new radio button.
Parameters:
text – the text to show in the button.
group – the button defining the group.
align – the horizontal and vertical alignment flags.

Fields

next:abgui.RadioButton The next button in its group. For single buttons, linked to this.
selected Whether this button is selected

Functions

addToGroup(group:abgui.RadioButton) Add this button to a group.
doClick() [Inherited comment] Perform a button click, i.e. notify the listeners.
drawText(x, y) [Inherited comment] Draw the text at a specific position.
setSelected(selected) Select or deselect this button.
function addToGroup(group:abgui.RadioButton)
Add this button to a group.
Parameters:
group – the button defining the group.
function setSelected(selected)
Select or deselect this button. Selecting it will deselect all others in the group.
Parameters:
selected – true to select the button.
function drawText(x, y)
Overridesabgui.Label.drawText()
[Inherited comment] Draw the text at a specific position.
Parameters:
x – the x coordinate of the start of the text.
y – the y coordinate of the baseline of the text.
function doClick()
Overridesabgui.Button.doClick()
[Inherited comment] Perform a button click, i.e. notify the listeners.
mShell Home  > Documentation  > mdoc