## MQWidget.SpinBox class

An integer input class.

Super classes: MQWidget.WidgetBase

### Property

get | set | Type | Name | Description
--- | --- | --- | --- | ---
x | x | int | position | a current value
x | x | int | min | a minimum value
x | x | int | max | a maximum value
x | x | int | increment | an inremental value for up/down button
x | x | string | alignment | an alignment for a text
[left] | left
[right] | right
x | x | int | visibleColumn | a number of columns to display
x | x | bool | enterSelect | Auto selection on mouse-enter
x | x | bool | enterKeyDefault | Allow default procedure by enter key

### Method

Member | Description
--- | ---
SpinBox | Constructor.
setFocus | Set a focus.
addChangedEvent | Add an event after finishing to change a value.
addChangingEvent | Add an event while changing a value.

SpinBox([parent])
Constructor.
  Parameters:
  MQWidget.WidgetBase | parent | - | A parent widget

setFocus([focus])
Set a focus.
  Parameters:
  bool | focus | - | a focus

addChangedEvent(callback)
Add an event after finishing to change a value.
  Parameters:
  function(sender) | callback | - | callback function

addChangingEvent(callback)
Add an event while changing a value.
  Parameters:
  function(sender) | callback | - | callback function