wSpinButton

A wSpinButton has two small up and down (or left and right) arrow buttons.

Appearance:
Superclass:wControl
Styles:
StylesDescription
wSpVerticalSpecifies a vertical spin button.
wSpHorizontalSpecifies a horizontal spin button.
Events:wSpinEvent

Consts

wSpVertical = 0
wSpHorizontal = 0x00000040

Procs

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.

Methods

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.