[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
TDBText - a data-aware text component to display a single text-string from a dataset
Source position: dbctrls.pp line 250
type TDBText = class(TCustomLabel) |
||
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 |
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; |
|
Specifies the placement of the control inside its Parent. |
property Alignment; |
|
Horizontal text justification (centered, left- or right-justified). |
property Anchors; |
|
The set of anchor definitions for this control. |
property AutoSize; |
|
Allows to automatically adjust the size of the control, according to its content. |
property BidiMode; |
||
property BorderSpacing; |
||
property Color; |
|
The background color of the control. |
property Constraints; |
||
property DataField: ; [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; |
|
The cursor shape shown while the control is dragged. |
property DragKind; |
||
property DragMode; |
|
Allows the user to drag the control. |
property Enabled; |
||
property FocusControl; |
|
The control associated with the label and its accelerator key (AccelChar). |
property Font; |
|
The font to be used for text display in this control. |
property Layout; |
||
property ParentBidiMode; |
||
property ParentColor; |
||
property ParentFont; |
||
property ParentShowHint; |
||
property PopupMenu; |
||
property ShowAccelChar; |
|
Underlines the character in the label that acts as an accelerator with a shortcut key. |
property ShowHint; |
||
property Transparent; |
||
property Visible; |
|
Allows to show or hide the control, and all of its children. |
property WordWrap; |
|
Allows text to wrap into multiple lines, when the text is too long for the available Width. |
property OnClick; |
||
property OnDblClick; |
||
property OnDragDrop; |
|
This handler determines the action on an drop onto this control, in a drag-drop operation. |
property OnDragOver; |
|
Event handler for a control being dragged over this control. |
property OnEndDrag; |
|
Notification handler for the end of a dragging operation. |
property OnMouseDown; |
||
property OnMouseMove; |
||
property OnMouseUp; |
||
property OnMouseEnter; |
||
property OnMouseLeave; |
||
property OnChangeBounds; |
||
property OnContextPopup; |
||
property OnResize; |
||
property OnStartDrag; |
|
Event handler for the start of a dragging operation. |
property OptimalFill; |
||
end; |
|
TDBText - a data-aware text component to display a single text-string from a dataset |
|
| | ||
|
The base class for TLabel. |
|
| | ||
|
TGraphicControl is the base class for all lightweight controls. |
|
| | ||
|
The base class for visible controls. |
|
| | ||
|
The base class for LCL components associated with widgets. |
|
| | ||
TComponent |
||
? | ||
TObject |
|
HowToUseDataAwareControls - Hints for accessing databases |