func_maxgui_sliders_setsliderrange.rst 855 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. .. _func_maxgui_sliders_setsliderrange:
  2. ==============
  3. SetSliderRange
  4. ==============
  5. SetSliderRange -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. SetSliderRange(slider:TGadget,range0,range1)
  10. Set the range of a Slider gadget.
  11. For the default SLIDER_SCROLLBAR style the range0,range1 parameters are treated
  12. as a visible / total ratio which dictates both the size of the knob and it's
  13. maximum value. The default value is 1,10 which displays a Slider with a knob
  14. that occupies 1/10th the area and with a #SliderValue range of 0..9.
  15. For the SLIDER_TRACKBAR and SLIDER_STEPPER styles the range0,range1 parameters
  16. are treated as the minimum and maximum #SliderValue range inclusive.
  17. See Also: #CreateSlider, #SliderValue and #SetSliderValue
  18. Parameters
  19. ==========
  20. Return Values
  21. =============
  22. Nothing.
  23. Examples
  24. ========
  25. See Also
  26. ========