A wSpinButton has two small up and down (or left and right) arrow buttons.
Appearance: | |
Styles: | Styles | Description |
wSpVertical | Specifies a vertical spin button. |
wSpHorizontal | Specifies a horizontal spin button. |
|
proc isVertical(self: wSpinButton): bool {...}{.inline, raises: [], tags: [].}
-
Returns true if the spin button is vertical and false otherwise.
proc init(self: wSpinButton; parent: wWindow; id = wDefaultID; pos = wDefaultPoint;
size = wDefaultSize; style: wStyle = wSpVertical) {...}{.raises: [wNilAccess,
wWindowError, wCursorError, wBrushError, Exception, IndexDefect, wFontError],
tags: [RootEffect].}
-
Initializes a spin button.
proc SpinButton(parent: wWindow; id = wDefaultID; pos = wDefaultPoint;
size = wDefaultSize; style: wStyle = wSpVertical): wSpinButton {...}{.inline,
discardable, raises: [wNilAccess, wWindowError, wCursorError, wBrushError,
Exception, IndexDefect, wFontError], tags: [RootEffect].}
-
Constructor.
method getDefaultSize(self: wSpinButton): wSize {...}{.raises: [], tags: [].}
-
Returns the default size for the control.
method getBestSize(self: wSpinButton): wSize {...}{.inline, raises: [], tags: [].}
-
Returns the best acceptable minimal size for the control.
method release(self: wSpinButton) {...}{.raises: [], tags: [RootEffect].}
-
Release all the resources during destroying. Used internally.