[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
TDBMemo - a data-aware Memo box to process the multi-line text of a single field in a dataset
Source position: dbctrls.pp line 824
type TDBMemo = class(TCustomMemo) |
||
protected |
||
function GetReadOnly; override; |
||
procedure SetReadOnly(); override; |
||
procedure DataChange(); |
|
DataChange - if Data changed, loads the new data into the appropriate part of the Field |
procedure Notification(); override; |
|
|
procedure UpdateData(); |
|
UpdateData - if data changed, copy new text via the datalink |
procedure Change; override; |
||
procedure KeyDown(); override; |
||
procedure KeyPress(); override; |
|
Invokes the OnKeyPress handler. |
procedure WndProc(); override; |
|
The general message handler for this control. |
class procedure WSRegisterClass; override; |
||
public |
||
constructor Create(); override; |
|
Create - constructor for TDBMemo: calls inherited Create, then sets style and forms datalinks and actions |
destructor Destroy; override; |
|
Destroy - destructor for TDBMemo: frees datalinks then calls inherited Destroy |
procedure EditingDone; override; |
|
EditingDone - if link allows modifications and is in an Editing state, updates data via the link then calls inherited EditingDone |
procedure LoadMemo; virtual; |
|
LoadMemo - tries to load data from current field as a string if possible, otherwise returns an exception |
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 Anchors; |
|
The set of anchor definitions for this control. |
property AutoDisplay: Boolean; [rw] |
|
AutoDisplay - if True, automatically displays the data when loaded |
property BiDiMode; |
||
property BorderSpacing; |
|
Determines the inner and outer border spacing for this control. |
property BorderStyle; |
||
property CharCase; |
||
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 database query |
property DragCursor; |
|
The cursor shape shown while the control is dragged. |
property DragMode; |
|
Allows the user to drag the control. |
property Enabled; |
||
property Font; |
|
The font to be used for text display in this control. |
property MaxLength; |
|
The maximum length of the text; zero for unlimited. |
property OnChange; |
|
Event handler for any change in text. |
property OnClick; |
||
property OnContextPopup; |
||
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 OnEditingDone; |
||
property OnEndDrag; |
|
Notification handler for the end of a dragging operation. |
property OnEnter; |
|
Handler for control receiving the focus. |
property OnExit; |
|
Handler for control loosing the focus. This is a good place for checking the finished user input. |
property OnKeyDown; |
|
Handler for keyboard key pressed. |
property OnKeyPress; |
|
Handler for a character entered by the user. |
property OnKeyUp; |
|
Handler for keyboard key released. |
property OnMouseDown; |
||
property OnMouseMove; |
||
property OnMouseUp; |
||
property OnStartDrag; |
|
Event handler for the start of a dragging operation. |
property OnUTF8KeyPress; |
|
Handler for a character entered by the user. |
property ParentBiDiMode; |
||
property ParentFont; |
|
If true, the Font of the control will be the same as the one from the Parent. Default is true. |
property PopupMenu; |
|
A context-sensitive menu that pops up when the right mouse button is clicked over this control |
property ReadOnly: Boolean; [rw] |
|
Prevents the user from changing the text. |
property ScrollBars; |
|
Adds vertical and/or horizontal scrollbars to the control. |
property TabOrder; |
|
Determines the sequence of controls, reachable when the user presses the Tab key. |
property Tabstop; |
|
Allows the user to navigate to this control, by pressing the Tab key. |
property Visible; |
|
Allows to show or hide the control, and all of its children. |
property WordWrap; |
|
Allows long logical lines (paragraphs) to wrap into multiple display lines. |
end; |
|
TDBMemo - a data-aware Memo box to process the multi-line text of a single field in a dataset |
|
| | ||
|
The base class for multi-line text controls. |
|
| | ||
|
The base class for controls presenting editable text. |
|
| | ||
|
The base class for controls which can contain other (child) controls. |
|
| | ||
|
The base class for visible controls. |
|
| | ||
|
The base class for LCL components associated with widgets. |
|
| | ||
TComponent |
||
? | ||
TObject |
|
HowToUseDataAwareControls - Hints for accessing databases |