SetLineStep

>>-aSliderControl~SetLineStep(--step--)------------------------><


The SetLineStep method sets the number of logical positions that the slider moves in response to keyboard input from the arrow keys, such as the Right arrow or the Down arrow keys. The logical positions are the integer increments within the minimum and maximum positions of the slider.

Arguments:

The only argument is:

step

The new line size.

Return value:

The previous line size, or -1 if you omit step.

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