VxSpinButton --
create a SpinButton, return widget name of enclosing form widget
Syntax
VxSpinButtonobject_name [ options ]
Description
Creates a SpinButton called object_name,
which consists of a text field and two
buttons which increase and decrease the numeric value in the text
field within upper and lower bounds.
Options
default
The initial default value.
dnOp
Optional operation to perform on increment when the ``down'' button
is pressed (- if not present).
increment
Sets how much the value increases or decreases.
lower
The lower boundary value.
overCB
A callback for when the value goes over the upper
bound. If set to ``'', the package automatically wraps the
value around to the lower value.
position
Standard geometryArgs for the Text widget.
underCB
A callback for when the value goes below the lower
bound. If set to "``'', the package automatically wraps the
value around to the upper value.
upOp
Optional operation to perform on increment when the ``up'' button
is pressed (+ if not present).
upper
The upper boundary value.
userCB
A callback which checks the value of the Text widget, or ``''
for no callback.
width
The width of the Text widget.
Globals
SBlower
array of lower boundary values, indexed by widget.
SBupper
array of upper boundary values, indexed by widget.
Returns
The name of the enclosing form widget.
Notes
The returned form widget name is attached to the name of the
text widget and rowcol widget containing the buttons: