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

# TBoundLabel

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

TBoundLabel: A label bound to another object, for example in TLabeledEdit

## Declaration

Source position: extctrls.pp line 1070

`type TBoundLabel = class(TCustomLabel)`
`public`
`constructor Create(); override;` |  | Create - constructor for TBoundLabel: calls inherited Create, makes itself a SubComponent to the Owner, and sets its caption to the owner name
`property FocusControl;` |  | FocusControl - whether this control has focus
`published`
`property Caption;` |  | Caption - the text-string appearing on the Control, usually used to identify its function
`property Color;` |  | Determine the colour for the current control
`property DragCursor;` |  | DragCursor - the style of cursor to be used during the Drag process
`property DragMode;` |  | DragMode - whether manual or automatic
`property Height;` |  | Height - the vertical dimension of the control
`property Left;` |  | Left - the coordinate of the left edge of the control
`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 PopupMenu;` |  | PopupMenu - a context-sensitive menu that pops up when the right mouse button is clicked over this control
`property ShowAccelChar;` |  | ShowAccelChar - underline the character in the label that acts as an accelerator with a shortcut key
`property ShowHint;` |  | Flag to determine: Is hint to be displayed for this control?
`property Top;`
`property Layout;` |  | Layout - How the Text is to be laid out in the text rectangle: at the Bottom, Centre or Top
`property WordWrap;` |  | WordWrap - whether a word is to be wrapped to the next line if the text is about to become too long for the width available
`property Width;` |  | Width - the horizontal dimension of the control
`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 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
`end;`

## Inheritance

`TBoundLabel` |  | TBoundLabel: A label bound to another object, for example in TLabeledEdit
`TCustomLabel` |  | TCustomLabel : the base type from which TLabel is derived.
`TGraphicControl` |  | TGraphicControl is the base class for all lightweight controls.
`TControl`
`TLCLComponent` |  | TLCLComponent - base class for LCL components
`TComponent,IUnknown,IInterfaceComponentReference`
`TPersistent`
`TObject`

## Description

TBoundLabel: A label bound to another object, for example in TLabeledEdit

## See also

TLabeledEdit |  | Labelled Edit: An Edit Box with a permanently attached Label

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