GuiSetRange
- set slider control range

GUI functions
(AmiBroker 6.30)


SYNTAX GuiSetRange( id, min, max, step, ticfreq )
RETURNS NOTHING
FUNCTION The functions sets min-max range of slider control and it's tick frequency.

Parameters:

  • id - control ID
  • min, max - minimum and maximum value of slider position
  • step - the smallest possible change of value (increment) of slider control
  • ticfreq - set the frequency with which tick marks are displayed in a slider. For example, if the frequency is set to 2, a tick mark is displayed for every other increment in the slider’s range. The value of 1 means that every increment in the range is associated with a tick mark.
EXAMPLE if( GuiSlider( 1, 10, 30, 200, 30, notifyEditChange ) == guiNew )
{
   // init values on control creation
  GuiSetValue( 1, 5 );
   GuiSetRange( 1, 1, 100, 0.1, 100 );
}

Title = "Value = " + GuiGetValue( 1 );
SEE ALSO GuiSlider() function

References:

The GuiSetRange function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.