Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{alias:qvslider}
h2. Name

*qvslider* — vertical slider

h2. Syntax
{panel:|borderStyle=solid|borderWidth=1|bgColor=#FFFFAA}

*qvslider* _min max_ \[ _cmds_ ...]

{panel}

h2. Description

The *qvslider* command creates a vertical QSlider object. This is a handle that can be dragged up or down in a stepwise manner. If a callback command is given it will be executed when the slider value changes. 

The slider may have its *_tracking*_ capability set to '1' or '0' using the [qsettracking] command. A slider that has its tracking enabled will invoke the callback command continously throughout the drag. If tracking is disabled, the callback command will be invoked only when the user releases the mouse button. Tracking is enabled by default. 

The slider may have tick marks in various locations (see the [qsettickposition] command for details). 

Sliders may have their value set programmatically using [qsetvalue]. 

See [qhslider] for examples on how to create sliders. 

h2. Arguments

_min max_
{indent}The minimum and maximum value for the slider. These must be integers. 
{indent}

_cmds_
{indent}One or more callback commands. These are invoked whenever the slider handle is dragged. The new value is appended to the callback command before evaluation. It is the programmers responsibility to ensure that the resulting command is a valid Tcl command. 

{indent}