Part Encyclopedia : WkNumericEditorView

WkNumericEditorView
C:\Users\documentation\Documents\vastePublisher\stable\VAS Documentation Word\images\wkctrl\ne-i.png
C:\Users\documentation\Documents\vastePublisher\stable\VAS Documentation Word\images\wkctrl\ne-ex.png
 
The WkNumericEditorView part provides a means for editing integer values. Since it is specifically designed for integers, WkNumericEditorView ensures that only integers are entered. To further restrict valid values, the range of valid numbers can be bounded by minimum and a maximum values. A user can increment or decrement the values using up/down arrow keys or by selecting the up/down buttons. A user can change the value in an editable spin button by typing in the entry field.
Protocol
alignment: anInteger
Specifies the text alignment used by the widget.
Default: XmALIGNMENTEND (Right)
Valid resource values:
XmALIGNMENTBEGINNING (Left) - Causes the left side of the line of text to be vertically aligned with the left edge of the widget window.
XmALIGNMENTCENTER (Center) - Causes the center of the line of text to be vertically aligned in the center of the widget window.
XmALIGNMENTEND (Right) - Causes the right side of the line of text to be vertically aligned with the right edge of the widget window.
 
allowNil: aBoolean
Specifies whether the text field may have a blank (nil) value.
 
editable: aBoolean
Specifies whether a user can edit text in the entry field part of the spin button.
 
maximum: anInteger
Specifies a numeric spin button’s maximum value.
 
minimum: anInteger
Specifies a numeric spin button’s minimum value.
 
numericSpinInterval: anInteger
Specifies the amount to increase or decrease a numeric spin button when the corresponding arrow is selected.
 
value: aString
Specifies the initial value of the widget.
 
wrapAround: aBoolean
Specifies whether the spin button should cycle or stop upon reaching the end of the collection, or max or min for a numeric spin button.
Events
Activated
These events are triggered when the user presses the default action key. This is typically a carriage return.
 
Decremented
These events are triggered when the user decreases the spin button value by one step. This can happen either when the down arrow key is pressed or when the down arrow button is selected with the mouse.
 
Getting Focus
These events are triggered before the entry field has accepted input focus.
 
Incremented
These events are triggered when the user increases the spin button value by one step. This can happen either when the up arrow key is pressed or the up arrow button is selected with the mouse.
 
Losing Focus
These events are triggered before the entry field loses input focus.
 
Object Changed
These events are triggered when the part’s vale is changed.