Unit 'ExtCtrls' Package
[Overview][Types][Classes][Procedures and functions][Index] [#lcl]

TCustomLabeledEdit.LabelPosition

Edge on the edge control where the bound label is aligned.

Declaration

Source position: extctrls.pp line 1031

public property TCustomLabeledEdit.LabelPosition : TLabelPosition
  read FLabelPosition
  write SetLabelPosition
  default lpAbove;

Description

LabelPosition is a TLabelPosition property which indicates the edge of the edit control where the bound label in EditLabel is aligned. The default value for the property is lpAbove.

Use one of the other TLabelPosition enumeration values to reposition the label relative to the edit control.

lpAbove
Positions the label above the edit control.
lpBelow
Positions the label below the edit control.
lpLeft
Positions the label on the left-hand edge of the edit control.
lpRight
Positions the label on the right-hand edge of the edit control.

Changing the value for the property causes EditLabel to be repositioned and anchored to the edit control.

Use LabelSpacing to specify the number of pixels used as a spacer between the edit control and the bound label in Editlabel.

See also

TCustomLabeledEdit.EditLabel

  

EditLabel - the label attached to the edit box.

TCustomLabeledEdit.LabelSpacing

  

Number of pixels between the control and its bound label.

TLabelPosition

  

Specifies the position for a label relative to an associated control.