Skip to main content

TcxButtonImageOptions.Spacing Property

Specifies the distance between the displayed glyph and the caption, in pixels.

Declaration

property Spacing: Integer read; write; default 4;

Property Value

Type Default Description
Integer 4

The base distance (in pixels at 96 DPI) between the glyph and caption.

-1 sets equal distances between the caption, glyph, and the nearest button border.

Remarks

Use the Spacing property to adjust the distance between the displayed glyph and the caption within the button when its PaintStyle property is set to bpsDefault.

Property Values and Scaling

The Spacing property specifies the base line width that corresponds to 96 DPI. The parent TcxButton component applies the current scale factor to the Spacing property value to calculate the actual distance between the glyph and caption.

Use the Layout property to switch between four predefined button content layouts (horizontal and vertical).

In addition, you can use the Margin property to adjust the distance between the displayed glyph and the nearest button border (depending on the current Layout property value).

Default Value

The Spacing property’s default value is 4.

See Also