Blitz3D+ Command Reference

SetTrackBarRange trackbar,minimum,maximum

Parameters

trackbar - trackbar gadget

minimum - value at the low end of the track

maximum - value at the high end; must not be below minimum

Description

Sets the minimum and maximum values of a trackbar.

A trackbar picks one value out of a range - volume, zoom, a scale percentage - so the range is its whole meaning. New trackbars start at 0 to 100; an inspector's scale control might use SetTrackBarRange scaleBar,40,160. Negative bounds are fine.

Changing the range re-clamps the current value silently (no $401 event). A minimum greater than the maximum stops with a runtime error.

Do not confuse it with SetSliderRange: sliders are scrollbars with visible/total page semantics, while trackbars are plain min/max value selectors.

See it working in the native input controls sample.

Requires Extended mode.

See also: CreateTrackBar, SetTrackBarValue, TrackBarValue, SetTrackBarStep.

Index