www.delorie.com/gnu/docs/gcl/gcl-tk_36.html   search  
 
Buy GNU books!


Untitled Document

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

Arguments for Scale

:command
Name="command" Class="Command"

Specifies the prefix of a Tcl command to invoke whenever the value of the scale is changed interactively. The actual command consists of this option followed by a space and a number. The number indicates the new value of the scale.

:from
Name="from" Class="From"

Specifies the value corresponding to the left or top end of the scale. Must be an integer.

:label
Name="label" Class="Label"

Specifies a string to displayed as a label for the scale. For vertical scales the label is displayed just to the right of the top end of the scale. For horizontal scales the label is displayed just above the left end of the scale.

:length
Name="length" Class="Length"

Specifies the desired long dimension of the scale in screen units, that is in any of the forms acceptable to Tk_GetPixels. For vertical scales this is the scale's height; for horizontal scales it is the scale's width.

:showvalue
Name="showValue" Class="ShowValue"

Specifies a boolean value indicating whether or not the current value of the scale is to be displayed.

:sliderforeground
Name="sliderForeground" Class="sliderForeground"

Specifies the color to use for drawing the slider under normal conditions. When the mouse is in the slider window then the slider's color is determined by the activeForeground option.

:sliderlength
Name="sliderLength" Class="SliderLength"

Specfies the size of the slider, measured in screen units along the slider's long dimension. The value may be specified in any of the forms acceptable to Tk_GetPixels.

:state
Name="state" Class="State"

Specifies one of two states for the scale: normal or disabled. If the scale is disabled then the value may not be changed and the scale won't activate when the mouse enters it.

:tickinterval
Name="tickInterval" Class="TickInterval"

Must be an integer value. Determines the spacing between numerical tick-marks displayed below or to the left of the slider. If specified as 0, then no tick-marks will be displayed.

:to
Name="to" Class="To"

Specifies the value corresponding to the right or bottom end of the scale. Must be an integer. This value may be either less than or greater than the from option.

:width
Name="width" Class="Width"

Specifies the desired narrow dimension of the scale in screen units (i.e. any of the forms acceptable to Tk_GetPixels). For vertical scales this is the scale's width; for horizontal scales this is the scale's height.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003