Class TrDBRecordSelection

Unit

Declaration

type TrDBRecordSelection = class(TCustomComboBox)

Description

DB Combobox for showing and selecting of active record, show active record and drop down show list of all records with possibility to select active record

Hierarchy

  • TCustomComboBox
  • TrDBRecordSelection

Overview

Methods

Public function LoadList: integer;

Properties

Published property Align;
Published property AutoComplete default true;
Published property AutoCompleteDelay default 500;
Published property AutoDropDown default false;
Published property AutoCloseUp default false;
Published property BevelEdges;
Published property BevelInner;
Published property BevelKind default bkNone;
Published property BevelOuter;
Published property Style;
Published property Anchors;
Published property BiDiMode;
Published property Color;
Published property Constraints;
Published property Ctl3D;
Published property DoubleBuffered;
Published property DragCursor;
Published property DragKind;
Published property DragMode;
Published property DropDownCount;
Published property Enabled;
Published property Font;
Published property ImeMode;
Published property ImeName;
Published property ItemHeight;
Published property ParentBiDiMode;
Published property ParentColor;
Published property ParentCtl3D;
Published property ParentDoubleBuffered;
Published property ParentFont;
Published property ParentShowHint;
Published property PopupMenu;
Published property ShowHint;
Published property Sorted;
Published property TabOrder;
Published property TabStop;
Published property TextHint;
Published property Touch;
Published property Visible;
Published property OnChange;
Published property OnClick;
Published property OnCloseUp;
Published property OnContextPopup;
Published property OnDblClick;
Published property OnDragDrop;
Published property OnDragOver;
Published property OnDrawItem;
Published property OnDropDown;
Published property OnEndDock;
Published property OnEndDrag;
Published property OnEnter;
Published property OnExit;
Published property OnGesture;
Published property OnKeyDown;
Published property OnKeyPress;
Published property OnKeyUp;
Published property OnMeasureItem;
Published property OnMouseEnter;
Published property OnMouseLeave;
Published property OnSelect;
Published property OnStartDock;
Published property OnStartDrag;
Published property DataSource: TDataSource read GetDataSource write SetDataSource;
Published property RecIdField: string read FRecIdField write SetRecIdField;
Published property ListFields: string read FListFields write SetListFields;
Published property LoadListEvent: TLoadListEvent read FLoadListEvent write FLoadListEvent default leAfterOpen;
Published property EditingState: TEditingState read FEditingState write FEditingState default esDisable;
Published property DBEditLabel: TDBBoundLabel read FDBEditLabel;

Description

Methods

Public function LoadList: integer;

load list of records (called automatically)

Properties

Published property Align;
 
Published property AutoComplete default true;
 
Published property AutoCompleteDelay default 500;
 
Published property AutoDropDown default false;
 
Published property AutoCloseUp default false;
 
Published property BevelEdges;
 
Published property BevelInner;
 
Published property BevelKind default bkNone;
 
Published property BevelOuter;
 
Published property Style;
 
Published property Anchors;

Must be published before Items

Published property BiDiMode;
 
Published property Color;
 
Published property Constraints;
 
Published property Ctl3D;
 
Published property DoubleBuffered;
 
Published property DragCursor;
 
Published property DragKind;
 
Published property DragMode;
 
Published property DropDownCount;
 
Published property Enabled;
 
Published property Font;
 
Published property ImeMode;
 
Published property ImeName;
 
Published property ItemHeight;
 
Published property ParentBiDiMode;
 
Published property ParentColor;
 
Published property ParentCtl3D;
 
Published property ParentDoubleBuffered;
 
Published property ParentFont;
 
Published property ParentShowHint;
 
Published property PopupMenu;
 
Published property ShowHint;
 
Published property Sorted;
 
Published property TabOrder;
 
Published property TabStop;
 
Published property TextHint;
 
Published property Touch;
 
Published property Visible;
 
Published property OnChange;
 
Published property OnClick;
 
Published property OnCloseUp;
 
Published property OnContextPopup;
 
Published property OnDblClick;
 
Published property OnDragDrop;
 
Published property OnDragOver;
 
Published property OnDrawItem;
 
Published property OnDropDown;
 
Published property OnEndDock;
 
Published property OnEndDrag;
 
Published property OnEnter;
 
Published property OnExit;
 
Published property OnGesture;
 
Published property OnKeyDown;
 
Published property OnKeyPress;
 
Published property OnKeyUp;
 
Published property OnMeasureItem;
 
Published property OnMouseEnter;
 
Published property OnMouseLeave;
 
Published property OnSelect;
 
Published property OnStartDock;
 
Published property OnStartDrag;
 
Published property DataSource: TDataSource read GetDataSource write SetDataSource;

define datasource to select record

Published property RecIdField: string read FRecIdField write SetRecIdField;

define ID field name which identifies record, must be numeric field

Published property ListFields: string read FListFields write SetListFields;

define list of fields and constants for each item, field separator=; constant separator=" e.g. ProductName;"; (id=";ProductId;")"

Published property LoadListEvent: TLoadListEvent read FLoadListEvent write FLoadListEvent default leAfterOpen;

define event when the list is loaded

Published property EditingState: TEditingState read FEditingState write FEditingState default esDisable;

define action if editing is active and use select another record

Published property DBEditLabel: TDBBoundLabel read FDBEditLabel;

define properties of bound label


Generated by PasDoc 0.15.0.