Skip to main content

TcxCustomTrackBarProperties.TrackSize Property

Specifies the width of the track bar in pixels.

Declaration

property TrackSize: Integer read; write; default dxTrackBarDefaultTrackSize;

Property Value

Type Default
Integer dxTrackBarDefaultTrackSize

Remarks

Use the TrackSize property to change the width of the track bar. If the AutoSize property is set to True, the track bar’s thumb will be automatically resized when changing the track bar’s size. Otherwise, you can set the thumb’s dimensions manually using the ThumbHeight and ThumbWidth properties.

The table below shows how changing the TrackSize property value affect the control’s appearance.

Value

Example

(horizontal orientation)

Example

(vertical orientation)

10

4

Note

You need to use the Orientation property to change the orientation of the track bar.

The default value of the TrackSize property is 10.

See Also