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

TCustomCheckBox.Alignment

Indicates the alignment for the caption text in the control.

Declaration

Source position: stdctrls.pp line 1357

public property TCustomCheckBox.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.

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

See also

TCustomCheckBox.CreateParams

  

Initializes the window creation parameter record with the settings for the control.

TLeftRight


Version 3.2 Generated 2024-02-25 Home