Sign in Join
FPDoc Onlineexperiment

TCustomSpeedButton.Spacing property

Member of TCustomSpeedButtonpublicIn unit Buttons

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

Declaration

pascal
property 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

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.