[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Buttons' (#lcl)

# TCustomSpeedButton.Spacing

Spacing between the Glyph bitmap and the Caption for the control.

## Declaration

Source position: buttons.pp line 433

`public property TCustomSpeedButton.Spacing : Integer read FSpacing write SetSpacing default 4;`

## Description

If Spacing is -1 and Margin is -1 then the glyph and the Caption are centered, with the same amount of unused space on each side of the control. If Spacing is -1 and Margin is not -1 then Spacing will fill the remaining unused space.

Changing the value for the property causes the preferred size to be recalculated, and the control is redrawn (in SetSpacing).

## See also

TCustomSpeedButton.SetSpacing |  | Sets the value for the Spacing property.
TCustomSpeedButton.Margin |  | Space between the glyph bitmap and the aligned edge in the button layout.
TCustomSpeedButton.Layout |  | Indicates the alignment of the glyph bitmap relative to the caption for the control.
TCustomSpeedButton.Alignment |  | Horizontal alignment for the text displayed on the button control.
TCustomSpeedButton.Glyph |  | The bitmap with the glyph image(s) displayed for button states.
TCustomSpeedButton.ShowCaption |  | Indicates if the Caption for the speed button is displayed.
TControl.Caption |  | The text displayed for the control.