[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
TDBListBox - a data-aware version of TListBox, for displaying lists of entries from a field in a database
Source position: dbctrls.pp line 260
type TDBListBox = class(TCustomListBox) |
||
|
||
procedure DataChange(); |
|
|
procedure EditingChange(); |
|
|
procedure UpdateData(); |
|
|
procedure FocusRequest(); |
|
|
function GetDataField; |
|
|
function GetDataSource; |
|
|
function GetField; |
|
|
procedure SetItems(); override; |
|
|
function GetReadOnly; |
|
|
procedure SetReadOnly(); |
|
|
procedure SetDataField(); |
|
|
procedure SetDataSource(); |
|
|
procedure CMGetDataLink(); message; |
||
protected |
||
procedure KeyDown(); override; |
|
|
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 the Window Control |
destructor Destroy; override; |
|
Destroy this instance of the Window Control, and return the resources used |
procedure Click; override; |
|
Click - a procedure that allows the programmer to simulate a mouse click over the control, and initiates the same Action as that associated with the OnClick event |
procedure EditingDone; override; |
|
EditingDone - what to do when you have finished editing |
property Field: TField; [r] |
|
The Field of the DataSet for which data are to be displayed |
published |
||
property DataField: String; [rw] |
|
The name (as a string) of the Field for which data are to be displayed |
property DataSource: TDataSource; [rw] |
|
The DataSource from which Field data are to be displayed - usually the results of a database query |
property Items; [w] |
|
The array of strings representing the list of entries in the list box |
property ReadOnly: Boolean; [rw] |
|
ReadOnly - if True, data can be seen and displayed but not writen or modified |
property Align; |
|
Used to align the control in one of four directions. |
property Anchors; |
|
The set of anchor definitions for this control |
property BorderSpacing; |
|
Determines the border spacing for this control |
property BorderStyle; |
|
BorderStyle - none, or single |
property DragCursor; |
|
DragCursor - the style of cursor to be used during the Drag process |
property DragMode; |
|
DragMode - whether manual or automatic |
property ExtendedSelect; |
|
ExtendedSelect - boolean. Whether extended selection is allowed. Default True |
property ItemHeight; |
|
ItemHeight - the height of the individual Items |
property MultiSelect; |
|
MultiSelect - allows more than one Item from the list to be selected at a time, by pressing the CTRL or SHIFT key while selecting |
property OnClick; |
|
Event Handler for mouse click |
property OnDblClick; |
|
Event Handle for mouse double-click |
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 OnDrawItem; |
|
OnDrawItem - event handler for drawing an Item |
property OnEndDrag; |
|
Event handler for the end of a dragging process |
property OnEnter; |
|
OnEnter - event handler for when the mouse enters the control, and the control receives focus |
property OnExit; |
|
OnExit - event handler for when the mouse leaves the control and it loses focus |
property OnKeyPress; |
|
OnKeyPress - event controller for a key being pressed while the control has focus |
property OnKeyDown; |
|
OnKeyDown - event handler for instance when key is down while control has focus |
property OnKeyUp; |
|
OnKeyUp - event handler for instance when a key is up (not pressed) while the control has focus |
property OnMouseMove; |
|
Event handler for mouse movement within the current control |
property OnMouseDown; |
|
Event handler for when a mouse button is pressed down |
property OnMouseUp; |
|
Event handler for when the mouse button is released, ie "up" |
property OnResize; |
|
Event Handler for resize of control |
property OnStartDrag; |
|
Event handler for start of dragging process |
property OnUTF8KeyPress; |
||
property ParentShowHint; |
|
ParentShowHint - does the control adopt the same hinting behaviour as its parent? Default is true |
property ShowHint; |
|
Flag to determine: Is hint to be displayed for this control? |
property Sorted; |
|
Sorted - whether the selected Items in the list have been arranged in alphabetical order |
property Style; |
|
Style of List Box - normal, owner-draw fixed, or owner-draw variable |
property TabOrder; |
|
The place this control occupies in the list of tabs |
property TabStop; |
|
TabStop - determines if the user can tab to a control. |
property TopIndex; |
|
Topindex - the highest value of Index in this list |
property Visible; |
|
Visible - can the control be seen? |
end; |
|
TDBListBox - a data-aware version of TListBox, for displaying lists of entries from a field in a database |
|
| | ||
TCustomListBox |
||
? | ||
TObject |
|
HowToUseDataAwareControls - Hints for accessing databases |