Sign in Join
FPDoc Onlineexperiment

TCustomCheckBox.Alignment property

Member of TCustomCheckBoxpublicIn unit StdCtrls

Indicates the alignment for the caption text in the control.

Declaration

pascal
property Alignment: TLeftRight read GetAlignment write SetAlignment default taRightJustify;

Description

Alignment is a TLeftRight property with the horizontal alignment for the caption text relative to the check box. The default value for the property is taRightJustify, and causes the text to be drawn to the right of the check box. Use taLeftJustify to draw the caption text in front of the check box.

Changing the value for the property causes the widgetset class to be updated when its Handle has been allocated.

The value in Alignment is used to set the creation parameters for the control.

The Alignment property is not supported for macOS Carbon, Cocoa, and GTK2 widgetsets. Set BiDiMode to bdRightToLeft as an alternative.

See also

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