TColorButton.Layout property
Declaration
property Layout: ;Description
Not described here; this is what TCustomSpeedButton.Layout says of it:
Indicates the alignment of the glyph bitmap relative to the caption for the control.
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.
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
