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 {...}{.inline, raises: [], tags: [].}
Returns true if the radio button is checked, false otherwise.
proc setValue(self: wRadioButton; state: bool) {...}{.inline, raises: [], tags: [].}
Sets the radio button to checked or unchecked status.
proc click(self: wRadioButton) {...}{.inline, raises: [], tags: [].}
Simulates the user clicking a radiobutton.
proc init(self: wRadioButton; parent: wWindow; id = wDefaultID; label: string = "";
         pos = wDefaultPoint; size = wDefaultSize; style: wStyle = 0) {...}{.raises: [
    wNilAccess, wWindowError, wCursorError, wBrushError, Exception, IndexDefect,
    wFontError], tags: [RootEffect].}
Initializes radio button
proc RadioButton(parent: wWindow; id = wDefaultID; label: string = "";
                pos = wDefaultPoint; size = wDefaultSize; style: wStyle = 0): wRadioButton {...}{.
    inline, discardable, raises: [wNilAccess, wWindowError, wCursorError, wBrushError,
                               Exception, IndexDefect, wFontError],
    tags: [RootEffect].}
Constructor.

Methods

method getBestSize(self: wRadioButton): wSize {...}{.raises: [], tags: [].}
Returns the best acceptable minimal size for the control.
method getDefaultSize(self: wRadioButton): wSize {...}{.raises: [], tags: [].}
Returns the default size for the control.
method release(self: wRadioButton) {...}{.raises: [], tags: [RootEffect].}
Release all the resources during destroying. Used internally.