Skip to main content

TcxCustomTrackBarProperties.ThumbHeight Property

Specifies the height of the track bar’s thumb in pixels.

Declaration

property ThumbHeight: Integer read; write; default dxTrackBarDefaultThumbHeight;

Property Value

Type Default
Integer dxTrackBarDefaultThumbHeight

Remarks

There are two ways to control the size of the track bar’s thumb:

  • Set the AutoSize property to True. In this case, dimensions of the thumb will be calculated automatically with respect to the track bar width (the TrackSize property). Values of the ThumbWidth and ThumbHeight properties will be ignored in this case.

  • Set the AutoSize property to False and specify the thumb’s dimensions manually using the ThumbHeight and ThumbWidth properties.

Note that you cannot assign values less than 10 to the ThumbHeight property.

Images below show examples of changing the ThumbHeight property value.

Value

Example

(horizontal orientation)

Example

(vertical orientation)

20

30

The default value of the ThumbHeight property is 18.

See Also