Class TrDBRecView
Unit
rDBRecView
Declaration
type TrDBRecView = class(TCustomDrawGrid)
Description
enhanced TCustomGrid component which provides functionality for displaying and editing of one dataset record
Hierarchy
- TCustomDrawGrid
- TrDBRecView
Overview
Methods
Properties
Description
Methods
 |
function IsDatasetLinked: boolean; |
indicates whether Grid is linked to any Dataset
|
 |
function IsActive: boolean; |
indicates whether linked Dataset is active
|
 |
function GetFieldCount: integer; |
returns count of fields
|
 |
function GetRowCount: integer; |
returns count of rows = GetFieldCount
|
 |
function GetField(Idx: integer): TField; |
returns field object according row index
|
 |
function GetCaption(Idx: integer): string; |
returns field caption according row index
|
 |
function GetValue(Idx: integer): string; |
returns field value according row index
|
 |
procedure GetFontStyle(Idx: integer; AFont: TFont; KeepFontNameSize: boolean); |
returns used font according row index
|
 |
function GetDataAlignment(Idx: integer): integer; |
returns data alignment according row index
|
Properties
 |
property FocusedField: TField read GetFocusedField; |
returns fields from selected row
|
 |
property FocusedText: string read GetFocusedText; |
returns current text from selected row
|
 |
property VisibleColCount; |
returns count of visible columns = 2
|
 |
property VisibleRowCount; |
returns count of visible rows
|
 |
property InplaceEditor; |
returns link to inplace editor
|
 |
property DataSource: TDataSource read GetDataSource write SetDataSource; |
link to datasource, if DBGrid is set then Datasource is set automatically from DBGrid
|
 |
property DBGrid: TDBGrid read FDBGrid write SetDBGrid; |
link to DBGrid, Rows (fields) and DataSource are loaded automatically from DBGrid columns
|
 |
property CustomGlyphs: TrCustomGlyphs read FCustomGlyphs write SetCustomGlyphs; |
define link to rCustomGlyphs component which can define all glyphs
|
 |
property OnlyVisibleField: boolean read FOnlyVisibleField write SetOnlyVisibleField default false; |
define if not visible field is hiden
|
 |
property OnlySimpleField: boolean read FOnlySimpleField write SetOnlySimpleField default false; |
define if not simple field (memo and graphics) is hiden
|
 |
property FieldsAsLink: TStringList read FFieldsAsLink write SetFieldsAsLink; |
Define list of fields as link, can be set easily by design time editor
|
 |
property TitleAlignment: TAlignment read FTitleAlignment write SetTitleAlignment default taLeftJustify; |
define allingment of title column
|
 |
property OptionsEx: TGridOptionsEx read FOptionsEx write SetOptionsEx default[]; |
define extension options
|
 |
property GridDlgVisibleTabs: TGridDlgVisibleTabs read FGridDlgVisibleTabs write FGridDlgVisibleTabs default[vtFieldsSetup, vtSpecFields, vtFieldsAsLink,
vtPickLists]; |
define witch tabs from design time dialog is visible in run time
|
 |
property Fields: TStringList read FFields write SetFields; |
define list of fields and captions
|
 |
property BooleanFields: TStringList read FBooleanFields write SetBooleanFields; |
define fields which is shown as boolean
|
 |
property SpecFields: TStringList read FSpecFields write SetSpecFields; |
list of fields (fieldname) which is shown with SpecFont; for modification of font can be used following format: FieldName=list of format strings separated by ; format string are: SF (standard font) N (normal) B (bold) I (italic) U (underline) colorname fontsize e.g. FirstName=B;Blue;10 LastName=B;U;Red;8
|
 |
property SpecFont: TFont read FSpecFont write SetSpecFont; |
define font for fields listed in property SpecFields
|
 |
property PickLists: TStringList read FPickLists write SetPickLists; |
define fields and their picklist items, can be set easily by design time editor
|
 |
property DateTimePicker: TDateTimePicker read FDateTimePicker; |
Returns TDateTimePicker for setting of their props
|
 |
property OnLinkClick: TLinkClickEvent read FOnLinkClick write FOnLinkClick; |
event is called after click to link
|
 |
property Align; |
|
 |
property Anchors; |
|
 |
property BevelEdges; |
|
 |
property BevelInner; |
|
 |
property BevelKind; |
|
 |
property BevelOuter; |
|
 |
property BevelWidth; |
|
 |
property BiDiMode; |
|
 |
property BorderStyle; |
|
 |
property Color; |
|
 |
property Constraints; |
property ColCount;
|
 |
property Ctl3D; |
|
 |
property DefaultColWidth; |
|
 |
property DefaultRowHeight; |
|
 |
property DefaultDrawing; |
|
 |
property DoubleBuffered; |
|
 |
property DragCursor; |
|
 |
property DragKind; |
|
 |
property DragMode; |
|
 |
property DrawingStyle; |
|
 |
property Enabled; |
|
 |
property FixedColor; |
|
 |
property Font; |
property FixedCols; property RowCount; property FixedRows;
|
 |
property GradientEndColor; |
|
 |
property GradientStartColor; |
|
 |
property GridLineWidth; |
|
 |
property Options; |
|
 |
property ParentBiDiMode; |
|
 |
property ParentColor; |
|
 |
property ParentCtl3D; |
|
 |
property ParentDoubleBuffered; |
|
 |
property ParentFont; |
|
 |
property ParentShowHint; |
|
 |
property PopupMenu; |
|
 |
property ScrollBars; |
|
 |
property ShowHint; |
|
 |
property TabOrder; |
|
 |
property Touch; |
|
 |
property Visible; |
|
 |
property OnClick; |
|
 |
property OnColumnMoved; |
|
 |
property OnContextPopup; |
|
 |
property OnDblClick; |
|
 |
property OnDragDrop; |
|
 |
property OnDragOver; |
|
 |
property OnDrawCell; |
|
 |
property OnEndDock; |
|
 |
property OnEndDrag; |
|
 |
property OnEnter; |
|
 |
property OnExit; |
|
 |
property OnFixedCellClick; |
|
 |
property OnGesture; |
|
 |
property OnGetEditMask; |
|
 |
property OnGetEditText; |
|
 |
property OnKeyDown; |
|
 |
property OnKeyPress; |
|
 |
property OnKeyUp; |
|
 |
property OnMouseActivate; |
|
 |
property OnMouseDown; |
|
 |
property OnMouseEnter; |
|
 |
property OnMouseLeave; |
|
 |
property OnMouseMove; |
|
 |
property OnMouseUp; |
|
 |
property OnMouseWheelDown; |
|
 |
property OnMouseWheelUp; |
|
 |
property OnRowMoved; |
|
 |
property OnSelectCell; |
|
 |
property OnSetEditText; |
|
 |
property OnStartDock; |
|
 |
property OnStartDrag; |
|
 |
property OnTopLeftChanged; |
|
Generated by PasDoc 0.13.0 on 2016-10-19 12:19:00
|