Skip to main content

TcxCustomTrackBarProperties.Max Property

Specifies the maximum value that can be represented by the track bar editor.

Declaration

property Max: Integer read; write; default 10;

Property Value

Type Default
Integer 10

Remarks

The Min and Max properties specify the lower and upper bounds of values that can be displayed by the track bar editor. For instance, if you want to use track bar editors to modify the red, green and blue channels of a color, you need to set the Min and Max properties of the editors to 0 and 255 respectively. Note that the Max property cannot be set to a value less than the Min property value, and vice versa. Attempts to do so will set both properties to the new value.

The editor’s Position property specifies the current thumb’s position. This property can be set only to values that fall within the range specified by the Min and Max properties.

The default value of the Max property is 10.

See Also