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

# TLabeledEdit

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Labelled Edit: An Edit Box with a permanently attached Label

## Declaration

Source position: extctrls.pp line 1137

`type TLabeledEdit = class(TCustomLabeledEdit)`
`published`
`property Alignment;`
`property Anchors;` |  | The set of anchor definitions for this control
`property AutoSelect;` |  | AutoSelect : if True, the edit control will select all its text when it receives focus or when the Enter key is pressed.
`property AutoSize;` |  | Whether auto-size is to be used
`property BorderSpacing;` |  | Determines the border spacing for this control
`property BorderStyle;`
`property CharCase;` |  | CharCase - rules for what case to use (upper or lower) to display text
`property Color;` |  | Determine the colour for the current control
`property Constraints;` |  | Determine Constraints (max and min height and width) for this control
`property DragCursor;` |  | DragCursor - the style of cursor to be used during the Drag process
`property DragMode;` |  | DragMode - whether manual or automatic
`property EchoMode;` |  | EchoMode - how to echo keypresses on screen: normal (returning the actual character for that key), all upper or lower case, or a masking character as used in entering passwords
`property EditLabel;` |  | EditLabel - the label attached to the edit box
`property Enabled;` |  | Whether the control is Enabled (read/write). If not, it usually appears 'greyed-out'
`property Font;`
`property LabelPosition;` |  | LabelPosition - whether above, below, to the left or to the right of the Edit box
`property LabelSpacing;` |  | LabelSpacing - the distance between the Label and the Edit box
`property MaxLength;` |  | MaxLength: maximum length allowed for text string
`property ParentColor;` |  | ParentColor - should the control have the same colour as the parent? Default is true
`property ParentFont;` |  | ParentFont - should the control use the same font as the parent? Default is true
`property ParentShowHint;` |  | ParentShowHint - does the control adopt the same hinting behaviour as its parent? Default is true
`property PasswordChar;` |  | PasswordChar : the character which appears in the Edit box replacing and masking the actual character typed
`property PopupMenu;`
`property ReadOnly;` |  | ReadOnly - the contents of the edit box may only be read, not written or erased
`property ShowHint;` |  | Flag to determine: Is hint to be displayed for this control?
`property TabOrder;`
`property TabStop;`
`property Text;` |  | Text : the character string contained in the Edit Box
`property Visible;` |  | Visible - can the control be seen?
`property OnChange;` |  | OnChange - event handler for any change in text
`property OnClick;` |  | Event Handler for mouse click
`property OnDblClick;` |  | Event Handle for mouse double-click
`property OnDragDrop;` |  | Event handler for the drop of a control onto this control.
`property OnDragOver;` |  | Event handler for the case when a control is dragged over another control
`property OnEndDrag;` |  | Event handler for the end of a dragging process
`property OnEnter;` |  | OnEnter - event handler for when the mouse enters the control, and the control receives focus
`property OnExit;` |  | OnExit - event handler for when the mouse leaves the control and it loses focus
`property OnKeyDown;` |  | OnKeyDown - event handler for instance when key is down while control has focus
`property OnKeyPress;` |  | OnKeyPress - event controller for a key being pressed while the control has focus. To properly handle national chars use UTF8KeyPress instead.
`property OnKeyUp;` |  | OnKeyUp - event handler for instance when a key is up (not pressed) while the control has focus
`property OnMouseDown;` |  | Event handler for when a mouse button is pressed down
`property OnMouseMove;` |  | Event handler for mouse movement within the current control
`property OnMouseUp;` |  | Event handler for when the mouse button is released, ie "up"
`property OnStartDrag;` |  | Event handler for start of dragging operation
`property OnUTF8KeyPress;` |  | UTF8KeyPress - event controller for a key being pressed while the control has focus.
`end;`

## Inheritance

`TLabeledEdit` |  | Labelled Edit: An Edit Box with a permanently attached Label
`TCustomLabeledEdit` |  | Custom Labelled Edit
`TCustomEdit` |  | TCustomEdit : the base type from which the TEdit Box is derived.
`TWinControl`
`TControl`
`TLCLComponent` |  | TLCLComponent - base class for LCL components
`TComponent,IUnknown,IInterfaceComponentReference`
`TPersistent`
`TObject`

## Description

TLabeledEdit : An Edit Box with a permanently attached Label

Saves time and effort over placing separate Label and Edit Box on Form. The properties are described in the parent component, TCustomLabeledEdit from which most of the properties are inherited

## See also

TCustomEdit |  | TCustomEdit : the base type from which the TEdit Box is derived.
TBoundLabel |  | TBoundLabel: A label bound to another object, for example in TLabeledEdit

The latest version of this document can be found at lazarus-ccr.sourceforge.net.