wSpinCtrl

wSpinCtrl combines wTextCtrl and wSpinButton in one control.

Appearance:
Superclass:wControl
Styles:
StylesDescription
wSpReadOnlyThe value will not be user-editable.
wSpLeftThe text is left aligned (this is the default).
wSpCenterThe text is centered.
wSpRightThe text is right aligned.
wSpArrowKeysThe value wraps at the minimum and maximum.
wSpWrapThe user can use arrow keys to change the value.
Events:wSpinEvent wCommandEvent
wSpinEventDescription
wEvent_SpinPressing an arrow changed the spin button value. This event can be vetoed.
wEvent_SpinUpPressing up/right arrow changed the spin button value. This event can be vetoed.
wEvent_SpinDownPressing down/left arrow changed the spin button value. This event can be vetoed.
wCommandEventDescription
wEvent_TextWhen the text changes.
wEvent_TextEnterWhen pressing Enter key.

Consts

wSpReadOnly = 0x00000800
wSpLeft = 0x00000000
wSpCenter = 0x00000001
wSpRight = 0x00000002
wSpArrowKeys = 1152921504606846976
wSpWrap = 2305843009213693952

Procs

proc setValue(self: wSpinCtrl; value: int) {...}{.raises: [], tags: [].}
Sets the value of the spin control.