InitRange

                              +-0---+     +-100-+     +-0-+
>>-aSliderControl~InitRange(--+-----+--,--+-----+--,--+---+--)-><
                              +-min-+     +-max-+     +-1-+


The InitRange method sets the minimum and maximum positions of the slider and redraws the slider, if required.

Arguments:

The arguments are:

min

The minimum position of the slider. The default is 0.

max

The maximum position of the slider. The default is 100.

redraw

The redraw flag. If you specify 1, the slider is redrawn after the range is set. If you specify 0 or omit this argument, the slider is not redrawn.

Return value:

0

The range was set.

-1

The minimum you specified is greater than the maximum.

Example:

The following example sets the range, the line step, the page step, and the tick frequency of the slider:

::method InitDialog
  curSL = self~GetSliderControl("IDC_1")
  if curSL \= .Nil then do
    curSL~InitRange(0,100)
    curSL~SetLineStep(1)
    curSL~SetPageStep(10)
    curSL~SetTickFrequency(10)
  end