[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 212

type TDBText = class(TLabel)

protected

  procedure Loaded; override;

  

Called when the component has finished loading.

  procedure Notification(); override;

  

Called by components that are freed and which received a FreeNotification.

public

  constructor Create(); override;

  

Create a new instance of a Graphic Control

  destructor Destroy; override;

  

Destroy this instance of a graphic control and return its resources

  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;

  

Used to align the control in one of four directions.

  property Alignment;

  

Alignment - whether text is centered, left- or right-justified

  property Anchors;

  

The set of anchor definitions for this control

  property AutoSize;

  

Whether auto-size is to be used

  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 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;

  

DragCursor - the style of cursor to be used during the Drag process

  property DragMode;

  

DragMode - whether manual or automatic

  property FocusControl;

  

FocusControl - whether this control has focus

  property Font;

  

The Font to be used for text in this control

  property Layout;

  

Layout - How the Text is to be laid out in the text rectangle: at the Bottom, Centre or Top

  property ShowAccelChar;

  

ShowAccelChar - underline the character in the label that acts as an accelerator with a shortcut key

  property Visible;

  

Visible - can the control be seen?

  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 OnDragDrop;

  

Event handler for the Drag-Drop manoeuvre

  property OnDragOver;

  

Event handler for the case when a control is dragged over another control

  property OnEndDrag;

  property OnStartDrag;

  

Event handler for start of dragging process

end;

Inheritance

TDBText

  

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

|

TLabel

?

TObject

See also

HowToUseDataAwareControls

  

HowToUseDataAwareControls - Hints for accessing databases