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

TDBText

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

TDBText - a data-aware text component to display a single text-string from a dataset

Declaration

Source position: dbctrls.pp line 263

type TDBText = class(TCustomLabel) end;

protected

  procedure Notification(); override;

  class procedure WSRegisterClass; override;

  procedure Loaded; override;

public

  constructor Create(); override;

  

Create - constructor for TDBText: calls inherited Create then forms data links and actions

  destructor Destroy; override;

  

Destroy - destructor for TDBText: frees data links then calls inherited Destroy

  function ExecuteAction(); override;

  function UpdateAction(); override;

  property Field: TField; [r]

  

The field in the DataSet to which this control is to be linked. Can be referred to by name, or as an index

published

  property Align: TAlign;

  

Specifies the placement of the control inside its Parent.

  property Alignment: TAlignment;

  

Horizontal text justification (centered, left- or right-justified).

  property Anchors: TAnchors;

  

The set of anchor definitions for this control.

  property AutoSize: Boolean;

  

Allows to automatically adjust the size of the control, according to its content.

  property BidiMode: TBiDiMode;

  property BorderSpacing: TControlBorderSpacing;

  property Color: TColor;

  

The background color of the control.

  property Constraints: TSizeConstraints;

  property DataField: string; [rw]

  

The name of the field, as a string (ie cannot be referred to as an Index)

  property DataSource: TDataSource; [rw]

  

The DataSource from which information is obtained to display in this control. Usually the result of a SQLQuery

  property DragCursor: TCursor;

  

The cursor shape shown while the control is dragged.

  property DragKind: TDragKind;

  property DragMode: TDragMode;

  

Allows the user to drag the control.

  property Enabled: Boolean;

  property FocusControl: TWinControl;

  

The control associated with the label and its accelerator key (AccelChar).

  property Font: TFont;

  

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

  property Layout: TTextLayout;

  property ParentBidiMode: Boolean;

  property ParentColor: Boolean;

  property ParentFont: Boolean;

  property ParentShowHint: Boolean;

  property PopupMenu: TPopupMenu;

  property ShowAccelChar: Boolean;

  

Underlines the character in the label that acts as an accelerator with a shortcut key.

  property ShowHint: Boolean;

  property Transparent: Boolean;

  property Visible: Boolean;

  

Allows to show or hide the control, and all of its children.

  property WordWrap: Boolean;

  

Allows text to wrap into multiple lines, when the text is too long for the available Width.

  property OnClick: TNotifyEvent;

  property OnDblClick: TNotifyEvent;

  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 dragging operation.

  property OnMouseDown: TMouseEvent;

  property OnMouseEnter: TNotifyEvent;

  property OnMouseLeave: TNotifyEvent;

  property OnMouseMove: TMouseMoveEvent;

  property OnMouseUp: TMouseEvent;

  property OnMouseWheel: TMouseWheelEvent;

  property OnMouseWheelDown: TMouseWheelUpDownEvent;

  property OnMouseWheelUp: TMouseWheelUpDownEvent;

  property OnChangeBounds: TNotifyEvent;

  property OnContextPopup: TContextPopupEvent;

  property OnResize: TNotifyEvent;

  property OnStartDrag: TStartDragEvent;

  

Event handler for the start of a dragging operation.

  property OptimalFill: Boolean;

Inheritance

TDBText

  

TDBText - a data-aware text component to display a single text-string from a dataset

|

TCustomLabel

  

The base class for TLabel.

|

TGraphicControl

  

TGraphicControl is the base class for all lightweight controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components associated with widgets.

|

TComponent

?

TObject

See also

HowToUseDataAwareControls

  

HowToUseDataAwareControls - Hints for accessing databases

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