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

TBoundLabel

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

Implements a label bound to another control.

Declaration

Source position: extctrls.pp line 921

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 aligment information used to position the control with its left edge anchored to another control.

  property AnchorSideTop: TAnchorSide; [s]

  

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

  property AnchorSideRight: TAnchorSide; [s]

  

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

  property AnchorSideBottom: TAnchorSide; [s]

  

Contains anchor aligment 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: TGraphicsColor;

  

The background color of the control.

  property DragCursor: TCursor;

  

The cursor shape shown while the control is dragged.

  property DragMode: TDragMode;

  

Allows the user to drag 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;

  

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

  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 for double mouse clicks.

  property OnDragDrop: TDragDropEvent;

  

This handler determines the action on an drop onto this control, in a drag-drop operation.

  property OnDragOver: TDragOverEvent;

  

Event handler for a control being dragged over this control.

  property OnEndDrag: TEndDragEvent;

  

Notification handler for the end of a drag 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 for mouse movement within 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 for downward movement of mouse wheel.

  property OnMouseWheelUp: TMouseWheelUpDownEvent;

  

Event handler for upward movement of the mouse wheel.

  property OnStartDrag: TStartDragEvent;

  

Event handler 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

  

|

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.



CT Web help

CodeTyphon Studio