NAME

scale - Create and manipulate a scale widget

SYNOPSIS

scale ?-option optionVal ...?

OPTIONS

-variable
Name of a (global) variable which is changed if the state of the button changes. If the variable does not exist, it is created and set to the lower limit. If it does exist, the widget is set accordingly. If the value of variable is set externaly (e.g. via the set command), the value of the widget is adapted accordingly and command executed.
type: string
default: ""
-command
Tcl command which is executed if the item is selected, variable set externaly or setValue called.

Before evaluating every percent (%) and its following character is substituted in command:
%% by %,
%v by value of the scale widget
%w by the widget-ID

type: string
default: ""
-lower
lower limit
type: double
default: 0
-upper
upper limit
type: double
default: 0
-value
acual value
type: double
default: 0
-stepInc
step increment
type: double
default: 1
-pageInc
page increment
type: double
default: 10
-digits
Number of decimal places which are displayed.
type: integer
default: 1
-drawValue
Whether only the value of the scale should be drawn.
type: boolean
default: true
-valuePos
Position where the value of the scale is drawn.
type: left, right, top, bottom
default: ???
-updatePolicy
How often a change of the value is reported (via change of variable or execution of command.
type: continuous, discontinuous, delayed
default: continuous
-orientation
Orientation of the scale widgets.
type: horizontal, vertical
default: vertical

DESCRIPTION

WIDGET COMMANDS

The scale command creates a new Tcl command whose name is an ID returned on widget creation. This command may be used to invoke various operations on the widget. It has the following general form:

ID option ?arg arg ...?

option and arg determine the exact behavior of the command. The following commands are possible for scale widgets:
ID getValue
Returns current value.
ID setValue value
Sets the state of the widget according to value, changes variable and executes command.

KEYWORDS


Copyright © 2001 - 2002 P. G. Baum