Class TrDBRecView
Unit
rDBRecView
Declaration
type TrDBRecView = class(TCustomDrawGrid)
Description
Enhanced TCustomDrawGrid component which provides functionality for displaying and editing of one dataset record. can display all type of fields including memo and grapics fields. Each field can be displayed with diferent font style and color. Can be linked to DBGrid or to DataSource
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 ScaleRatio: double read FScaleRatio; |
define actual scale ratio relative to original designed size
|
|
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: TCustomDBGrid 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 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 EllipsisFields: TStrings read FEllipsisFields write SetEllipsisFields; |
define fields with ellipsis button
|
|
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 OnGetCellParams: TGetCellParamsEvent read FOnGetCellParams write FOnGetCellParams; |
event for user defined setting of individual cell params - font, color
|
|
property OnEditButtonClick: TNotifyEvent read FOnEditButtonClick write FOnEditButtonClick; |
event called after click to Ellipsis button
|
|
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.15.0.
|