Back to Devexpress

TcxButtonImageOptions.Layout Property

vcl-cxbuttons-dot-tcxbuttonimageoptions-eee04293.md

latest2.9 KB
Original Source

TcxButtonImageOptions.Layout Property

Specifies the active button content layout.

Declaration

delphi
property Layout: TButtonLayout read; write; default blGlyphLeft;

Property Value

TypeDefaultDescription
TButtonLayoutblGlyphLeft

The selected button layout.

|

Remarks

Use the Layout property to switch between four predefined layout options when the button displays both a glyph (assigned using Glyph or Images/ImageIndex) and caption.

Note

The Layout property has no effect in Command Link mode (if the TcxButton.Kind property is set to cxbkCommandLink).

Available Options

blGlyphLeftThe caption follows the glyph in a horizontal layout.blGlyphRightThe glyph follows the caption in a horizontal layout.blGlyphTopThe glyph is above the caption in a vertical layout.blGlyphBottomThe glyph is below the caption in a vertical layout.

Use the Margin property to specify the distance between the displayed glyph and the nearest button border (depending on the current Layout property value).

In addition, you can use the Spacing property to adjust the distance between the glyph and the caption regardless of the current Layout property value.

Default Value

The Layout property’s default value is blGlyphLeft.

See Also

TcxCustomButton.Kind Property

TcxCustomButton.PaintStyle Property

TcxButtonImageOptions Class

TcxButtonImageOptions Members

cxButtons Unit