TCnTrackBar.SetRange(Integer,Integer) Method

Sets the minimum and maximum values for a TCnTrackBar .

Namespace: CNClrLib.Control.TrackBar
public
 procedure SetRange(MinValue: Integer; MaxValue: Integer);

Parameters

MinValue
Type: Integer

The lower limit of the range of the track bar.

MaxValue
Type: Integer

The upper limit of the range of the track bar.

You can use this method to set the entire range for the TCnTrackBar at the same time. To set the minimum or maximum values individually, use the Minimum and Maximum properties. If the minValue parameter is greater than the maxValue parameter, maxValue is set equal to minValue.