TCustomSpeedButton.Layout property
Indicates the alignment of the glyph bitmap relative to the caption for the control.
Declaration
property Layout: TButtonLayout read FLayout write SetLayout default blGlyphLeft;Description
Layout is a
TButtonLayout property which indicates the
position for the glyph on the speed button relative to the caption text for
the 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 default size for the control to be recalculated (in SetLayout), and the control is redrawn.
Layout is used in the MeasureDraw method to position and size the text and glyph image for the button.
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.
