Sign in Join
FPDoc Onlineexperiment

TCustomBitBtn.Layout property

Member of TCustomBitBtnpublicIn unit Buttons

Layout or alignment for the glyph bitmap and caption on the control.

Declaration

pascal
property Layout: TButtonLayout read FLayout write SetLayout default blGlyphLeft;

Description

Layout is a TButtonLayout property which indicates the alignment used for the Glyph (or image) and the Caption on the button control. The default value for the property is blGlyphLeft. It causes the Margin, Glyph (or image), Spacing, and Caption to be aligned to the left edge of the button surface.

Changing the property value causes the widgetset class instance to be updated when its handle has been allocated. InvalidatePreferredSize is called to recalculate the preferred dimensions for the control. AdjustSize is called to auto-size a visible control and its parent.

The property value is used in the InitializeWnd method to set the initial value in the widget class instance.

Use Margin to set the space reserved prior to the glyph bitmap on the aligned edge of the control. Use Spacing to set the space reserved between the Glyph image and the Caption relative to the aligned edge of the control.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.