TSpeedButton.Alignment property
Horizontal alignment for the text displayed on the button control.
Declaration
property Alignment:;Description
Alignment is a
TAlignment property with the horizontal
alignment for the
Caption displayed on the button control.
Alignment is used (along with
UseRightToLeftReading) in the
MeasureDraw method to set the text flags needed to measure / draw
the Caption> for the control.
The default value for the property is taCenter, and causes the
Caption to be centered in the text area on the control. Use taLeft
to left-align the Caption in the text area. Use taRight to
right-align the Caption for the control. Changing the value for the property
causes the control to be redrawn.
Set the value in ShowCaption to True to display the Caption
for the control.
Use the Layout property to control the placement of the image
relative to the text value displayed on the control.
Use the Align property to specify the side on the parent control
to which the speed button is aligned, or to specify that custom
Anchors are used for positioning and sizing.
This description is the one of Buttons.TCustomSpeedButton.Alignment.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
