Copyright (c) 1995 DSC Technologies Corporation
See the file "license.terms" for information on usage and redistribution
of this file, and for a DISCLAIMER OF ALL WARRANTIES.
@(#) spinner.n 1.21 94/12/17 16:04:44
.so man.macros .HS iwidgets::spinner iwid S Note: do not modify the .SH NAME line immediately below!
background borderWidth cursor exportSelection
foreground highlightColor highlightThickness insertBackground
insertBorderWidth insertOffTime insertOnTime insertWidth
justify relief selectBackground selectBorderWidth
selectForeground textVariable
See the "options" manual entry for details on the standard options.
show state
See the "entry" manual entry for details on the associated options.
childSitePos command fixed focusCommand invalid textBackground textFont validate width
See the "entryfield" widget manual entry for details on the above inherited options.
disabledForeground labelBitmap labelFont labelImage labelMargin labelPos labelText labelVariable state sticky
See the "labeledwidget" widget manual entry for details on the above inherited options.
Name: arrowOrient Class: Orient Command-Line Switch: -arroworientSpecifies placement of arrow buttons: horizontal or vertical. The default is vertical.
Name: decrement Class: Command Command-Line Switch: -decrementTcl command to be executed when down arrow is pressed.
Name: increment Class: Command Command-Line Switch: -incrementTcl command to be executed when up arrow is pressed.
Name: repeatDelay Class: RepeatDelay Command-Line Switch: -repeatdelaySpecifies the initial delay in milliseconds before the spinner repeat action on the arrow buttons engages. The default is 300 milliseconds.
Name: repeatInterval Class: RepeatInterval Command-Line Switch: -repeatintervalSpecifies the repeat delay in milliseconds between selections of the arrow buttons. A repeatinterval of 0 disables button repeat. The default is 100 milliseconds.
E
The iwidgets::spinner command creates a spinner widget. The spinner is comprised of an entryfield plus up and down arrow buttons. Arrows may be drawn horizontally or vertically.
The iwidgets::spinner command creates a new Tcl command whose name is pathName. This command may be used to invoke various operations on the widget. It has the following general form: C pathName option ?arg arg ...? Option and the args determine the exact behavior of the command. The following commands are possible for spinner widgets:
delete get icursor index insert scan selection xview
See the "entry" manual entry for details on the associated methods.
childsite clear peek
See the "entryfield" manual entry for details on the associated methods.
pathName cget option Returns the current value of the configuration option given by option. Option may have any of the values accepted by the iwidgets::spinner command.
pathName configure ?option? ?value option value ...? Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted by the iwidgets::spinner command.
pathName down Derived classes may overload this method to specialize functionality.
pathName up Derived classes may overload this method to specialize functionality.
Name: downarrow Class: CanvasThe downarrow component is the downward pointing button of the spinner. See the "canvas" widget manual entry for details on the downarrow component item.
Name: uparrow Class: CanvasThe uparrow component is the upward pointing button of the spinner. See the "canvas" widget manual entry for details on the uparrow component item.
Ken Copeland <ken@hilco.com>
10/18/95 - Added auto-repeat action to spinner arrow buttons.