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

TBoundLabel

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

Implements a label bound to another control.

Declaration

Source position: extctrls.pp line 941

type TBoundLabel = class(TCustomLabel)

public

  constructor Create(); override;

  

Constructor for the class instance.

  property FocusControl: TWinControl;

  

FocusControl is the control to receive focus when the label is activated.

published

  property AnchorSideLeft: TAnchorSide; [s]

  

Contains anchor alignment information used to position the control with its left edge anchored to another control.

  property AnchorSideTop: TAnchorSide; [s]

  

Contains anchor alignment information used to position the control with its top edge anchored to another control.

  property AnchorSideRight: TAnchorSide; [s]

  

Contains anchor alignment information used to position the control with its right edge anchored to another control.

  property AnchorSideBottom: TAnchorSide; [s]

  

Contains anchor alignment information used to position the control with its bottom edge anchored to another control.

  property Left: Integer; [s]

  

The client coordinate with the left edge for the control.

  property Top: Integer; [s]

  

The client coordinate for the top edge of the control.

  property Caption: TCaption;

  

The text displayed for the control.

  property Color: TColor;

  

The background color for the control.

  property DragCursor: TCursor;

  

The cursor shape shown during a drag operation.

  property DragMode: TDragMode;

  

Determines how a drag operation is started for the control.

  property Height: Integer;

  

The vertical size for the control.

  property ParentColor: Boolean;

  

Use the Color from the Parent control, when enabled.

  property ParentFont: Boolean;

  

Indicates if the Font from the Parent control is used in the control.

  property ParentShowHint: Boolean;

  

If True, the value of ShowHint for the control will be the same as the one from the Parent. Default is True.

  property Font: TFont;

  

The font to be used for text display in this control.

  property PopupMenu: TPopupMenu;

  

A context-sensitive menu that pops up when the right mouse button is clicked over this control.

  property ShowAccelChar: Boolean;

  

Underlines the character in the label that acts as the accelerator or short cut key.

  property ShowHint: Boolean;

  

Enables Hint display for the control.

  property Layout: TTextLayout;

  

Vertical alignment for control text (at the top, bottom, or center).

  property WordWrap: Boolean;

  

Allows the caption to wrap to multiple lines when it is longer than the available Width.

  property OnClick: TNotifyEvent;

  

Notification handler for mouse clicks.

  property OnDblClick: TNotifyEvent;

  

Event handler signalled when a mouse double click occurs in the control.

  property OnDragDrop: TDragDropEvent;

  

Event handler signalled when an object is dropped onto the control.

  property OnDragOver: TDragOverEvent;

  

Event handler signalled when a control is dragged over the control instance.

  property OnEndDrag: TEndDragEvent;

  

Event handler signalled for the end of a drag-drop operation.

  property OnMouseDown: TMouseEvent;

  

Event handler signalled when a mouse down event is handled for the control.

  property OnMouseEnter: TNotifyEvent;

  

Event handler signalled when the mouse pointer has entered the control.

  property OnMouseLeave: TNotifyEvent;

  

Event handler signalled when the mouse pointer has left the control.

  property OnMouseMove: TMouseMoveEvent;

  

Event handler signalled when the mouse pointer is moved in the control.

  property OnMouseUp: TMouseEvent;

  

Event handler signalled when a mouse up event is handled for the control.

  property OnMouseWheel: TMouseWheelEvent;

  

Event handler for mouse wheel turned.

  property OnMouseWheelDown: TMouseWheelUpDownEvent;

  

Event handler signalled for a downward movement of the mouse wheel.

  property OnMouseWheelUp: TMouseWheelUpDownEvent;

  

Event handler signalled for an upward movement of the mouse wheel.

  property OnStartDrag: TStartDragEvent;

  

Event handler signalled for the start of a dragging operation.

end;

Inheritance

TBoundLabel

  

Implements a label bound to another control.

|

TCustomLabel

  

Control used to show static text optionally using multiple lines.

|

TGraphicControl

  

TGraphicControl is the base class for all lightweight controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components which have an associated widget.

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent,IFPObserved

|

TObject

Description

TBoundLabel is a TCustomLabel descendant which implements a label bound to another control. TBoundLabel is the type used to implement the EditLabel property in TCustomLabeledEdit and TLabeledEdit.

Use Caption to assign the text displayed in the label. Use Layout to specify the text alignment used for the Caption value.

The FocusControl property specifies the control given focus when a Dialog accelerator key or other input event in the class is handled. Use one of the AnchorSide* properties to specify the edge anchored to the FocusControl.

Other than a constructor, the class does not have any new methods or event handlers.

See also

TCustomLabel

TCustomLabeledEdit

  

Defines an edit control with a label bound to the control.

TLabeledEdit

  

Implements an edit control with a label bound to the control.


Version 3.2 Generated 2024-02-25 Home