InitSelRange

                                 +-0---+                 +-0------+
>>-aSliderControl~InitSelRange(--+-----+--,--+-----+--,--+--------+--)-><
                                 +-min-+     +-max-+     +-redraw-+


The InitSelRange method sets the starting and ending logical positions for the current selection range in a slider. It is ignored if the slider does not have a selection range.

Arguments:

The arguments are:

min

The logical starting position of the selection range. The default is 0.

max

The logical ending position of the selection range. If you omit this argument, the maximum position of the slider's range is assumed.

redraw

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

Return value:

-1

The minimum you specified is greater than the maximum.

0

In all other cases.