A wxSpinButton has two small up and down (or left and right) arrow buttons.
It is often used next to a text control for increment and decrementing a value. Portable programs should try to use wxSpinCtrl instead as wxSpinButton is not implemented for all platforms but wxSpinCtrl is as it degenerates to a simple wxTextCtrl on such platforms.
Note: the range supported by this control (and wxSpinCtrl) depends on the platform but is at least -0x8000 to 0x7fff. Under GTK and Win32 with sufficiently new version of comctrl32.dll (at least 4.71 is required, 5.80 is recommended) the full 32 bit range is supported.
This class supports the following styles:
wxWidgets docs: wxSpinButton
new() -> wxSpinButton()
new(Parent) -> wxSpinButton()
new(Parent, Options :: [Option]) -> wxSpinButton()
Constructor, creating and showing a spin button.
destroy(This :: wxSpinButton()) -> ok
Destructor, destroys the spin button control.
create(This, Parent) -> boolean()
create(This, Parent, Options :: [Option]) -> boolean()
Scrollbar creation function called by the spin button constructor.
See new/2 for details.
getMax(This) -> integer()
Returns the maximum permissible value.
getMin(This) -> integer()
Returns the minimum permissible value.
getValue(This) -> integer()
Returns the current spin button value.
setRange(This, Min, Max) -> ok
Sets the range of the spin button.
In portable code, min should be less than or equal to max. In wxMSW it is possible to specify minimum greater than maximum and the native control supports the same range as if they were reversed, but swaps the meaning of up and down arrows, however this dubious feature is not supported on other platforms.
setValue(This, Value) -> ok
Sets the value of the spin button.