Skip to main content

TcxCustomTrackBarProperties.ThumbWidth Property

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

Declaration

property ThumbWidth: Integer read; write; default dxTrackBarDefaultThumbWidth;

Property Value

Type Default
Integer dxTrackBarDefaultThumbWidth

Remarks

The track bar editor gives you the ability to set the height and width of the track bar’s thumb manually using the ThumbWidth and ThumbHeight properties. Note however, that this can be done only if the AutoSize property value is False. Otherwise the dimensions of the track bar’s thumb are calculated automatically with respect to the track bar width (the TrackSize property).

Note that you cannot assign values less than 4 to the ThumbWidth property.

Images below show examples of the ThumbWidth property settings.

Value

Example

(horizontal orientation)

Example

(vertical orientation)

10

15

The default value of the ThumbWidth property is 7.

See Also