Skip to main content

TcxButtonImageOptions.Margin Property

Specifies the space between the button image and the closest button edge, in pixels.

Declaration

property Margin: Integer read; write; default -1;

Property Value

Type
Integer

Remarks

The closest button edge is determined based on the Layout property value. For instance, if the Layout property is set to blGlyphLeft, the closest edge is the button’s left edge, and so on.

The following table illustrates samples of the Margin property.

Layout Margin
blGlyphLeft
blGlyphTop

Setting the Margin property to the default value (-1) centers the button’s caption and image within the button.

The default value of the Margin property is -1.

See Also