scale pathName ?options?
-activebackground -font -highlightthickness -repeatinterval -background -foreground -orient -takefocus -borderwidth -highlightbackground -relief -troughcolor -cursor -highlightcolor -repeatdelay
See the options manual entry for detailed descriptions of the above options.
Command-Line Name: | -bigincrement |
Database Name: | bigIncrement |
Database Class: | BigIncrement |
Command-Line Name: | -command |
Database Name: | command |
Database Class: | Command |
Command-Line Name: | -digits |
Database Name: | digits |
Database Class: | Digits |
Command-Line Name: | -from |
Database Name: | from |
Database Class: | From |
Command-Line Name: | -label |
Database Name: | label |
Database Class: | Label |
Command-Line Name: | -length |
Database Name: | length |
Database Class: | Length |
Command-Line Name: | -resolution |
Database Name: | resolution |
Database Class: | Resolution |
Command-Line Name: | -showvalue |
Database Name: | showValue |
Database Class: | ShowValue |
Command-Line Name: | -sliderlength |
Database Name: | sliderLength |
Database Class: | SliderLength |
Command-Line Name: | -sliderrelief |
Database Name: | sliderRelief |
Database Class: | SliderRelief |
Command-Line Name: | -state |
Database Name: | state |
Database Class: | State |
Command-Line Name: | -tickinterval |
Database Name: | tickInterval |
Database Class: | TickInterval |
Command-Line Name: | -to |
Database Name: | to |
Database Class: | To |
Command-Line Name: | -variable |
Database Name: | variable |
Database Class: | Variable |
Command-Line Name: | -width |
Database Name: | width |
Database Class: | Width |
A scale is a widget that displays a rectangular trough and a small slider. The trough corresponds to a range of real values (determined by the from, to, and resolution options), and the position of the slider selects a particular real value. The slider's position (and hence the scale's value) may be adjusted with the mouse or keyboard as described in the BINDINGS section below. Whenever the scale's value is changed, a Tcl command is invoked (using the command option) to notify other interested widgets of the change. In addition, the value of the scale can be linked to a Tcl variable (using the variable option), so that changes in either are reflected in the other.
Three annotations may be displayed in a scale widget: a label appearing at the top right of the widget (top left for horizontal scales), a number displayed just to the left of the slider (just above the slider for horizontal scales), and a collection of numerical tick marks just to the left of the current value (just below the trough for horizontal scales). Each of these three annotations may be enabled or disabled using the configuration options.
Option and the args determine the exact behavior of the command. The following commands are possible for scale widgets:pathName option ?arg arg ...?
Copyright © 1989-1994 The Regents of the University of California.
Copyright © 1994-1997 Sun Microsystems, Inc.