Programmer Guide/Shell Items/Dialog/Dialog Controls/Slider

From STX Wiki
Jump to navigationJump to search
SET dialog index SLIDER row col text var1 width height var2 [fg bg font] [ /A|L|R ]

Slider controls can be used to enter values by setting the slider position and/or the display values (similar to progress controls). Normally the slider position is defined by one value. If option /2 is specified the slider can be used to select a range. Optionally, a scale can be displayed (option /Scale with tickdistance for var2). If a hash character (#) is used in place of var2, the default range (0-1000) is used.

var1 The name of the position (var1 = pos) or selection variable (var1 = min max).
var2 The name of the range variable (var2 = minimum maximum tickdistance).
/Horizontal or Vertical Make the slider horizontal or vertical
/Scale=pos This option controls where the ticks are placed. The value of pos can be set to Above, Below, Left, Right, Both or None.
/2 This option means that the slider has only two values, minimum and maximum. Otherwise a position is selected.

See Common arguments for a description of the parameters not described here.

Navigation menu

Personal tools