- set slider control range
|| GuiSetRange( id, min, max, step, ticfreq )
|| The functions sets min-max range of slider control and it's tick frequency.
- 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.
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 );
|| GuiSlider() function
The GuiSetRange function is used in the following formulas
in AFL on-line library:
See updated/extended version on-line.