wRadioButton

A radio button item is a button which usually denotes one of several mutually exclusive options.

Appearance:
Superclass:wControl
Styles:
StylesDescription
wRbGroupMarks the beginning of a new group of radio buttons.
Events:wCommandEvent
wCommandEventDescription
wEvent_RadioButtonThe radio button is clicked.

Consts

wRbGroup = 0x00020000

Procs

proc getValue(self: wRadioButton): bool {...}{.validate, property, inline, raises: [],
                                      tags: [].}
Returns true if the radio button is checked, false otherwise.
proc setValue(self: wRadioButton; state: bool) {...}{.validate, property, inline, raises: [],
    tags: [].}
Sets the radio button to checked or unchecked status.
proc click(self: wRadioButton) {...}{.validate, inline, raises: [], tags: [].}
Simulates the user clicking a radiobutton.
proc final(self: wRadioButton) {...}{.raises: [], tags: [].}
Default finalizer for wRadioButton.
proc init(self: wRadioButton; parent: wWindow; id = wDefaultID; label: string = "";
         pos = wDefaultPoint; size = wDefaultSize; style: wStyle = 0) {...}{.validate,
    raises: [], tags: [].}
Initializer.
proc RadioButton(parent: wWindow; id = wDefaultID; label: string = "";
                pos = wDefaultPoint; size = wDefaultSize; style: wStyle = 0): wRadioButton {...}{.
    inline, discardable, raises: [], tags: [].}
Constructor, creating and showing a radio button.

Methods

method getBestSize(self: wRadioButton): wSize {...}{.property, raises: [], tags: [].}
Returns the best acceptable minimal size for the control.
method getDefaultSize(self: wRadioButton): wSize {...}{.property, raises: [], tags: [].}
Returns the default size for the control.