+-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.
The arguments are:
The minimum position of the slider. The default is 0.
The maximum position of the slider. The default is 100.
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.
The range was set.
The minimum you specified is greater than the maximum.
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