A radio button item is a button which usually denotes one of several mutually exclusive options.
Appearance: | |
Styles: | Styles | Description |
wRbGroup | Marks the beginning of a new group of radio buttons. |
|
Events: | wCommandEventwCommandEvent | Description |
wEvent_RadioButton | The radio button is clicked. |
|
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.
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.