[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Buttons' (#lcl)

TCustomSpeedButton.Alignment

Horizontal alignment for the text displayed on the button control.

Declaration

Source position: buttons.pp line 413

public property TCustomSpeedButton.Alignment : TAlignment
  read FAlignment
  write SetAlignment
  default taCenter;

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.

See also

TCustomSpeedButton.Layout

  

Indicates the alignment of the glyph bitmap relative to the caption for the control.

TCustomSpeedButton.MeasureDraw

  

Calculates the Width, Height, and layout for the speed button and optionally renders the control.

TCustomSpeedButton.ShowCaption

  

Indicates if the Caption for the speed button is displayed.

TControl.Align

  

Specifies the placement of the control on its Parent control.

TControl.Anchors

  

The set of anchor definitions for this control.

TControl.Caption

  

The text displayed for the control.

TControl.UseRightToLeftReading

  

True when BiDiMode is not bdLeftToRight.

TAlignment


Version 3.2 Generated 2024-02-25 Home