[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 270
type TDBText = class(TLabel) |
||
protected |
||
procedure Loaded; override; |
||
procedure Notification(); 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; |
|
Used to align the control to the top, bottom, left or right of its client. |
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 - which 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; |
|
Event handler for the end of a dragging process |
property OnStartDrag; |
|
Event handler for start of dragging process |
end; |
|
TDBText - a data-aware text component to display a single text-string from a dataset |
|
| | ||
TLabel |
||
? | ||
TObject |
|
HowToUseDataAwareControls - Hints for accessing databases |