Class TIpDbGrid (unit IpDbGrid)

Inherits from

TCustomDbGrid

Constructors


constructor Create(AOwner: TComponent);



Functions

procedure CellClick(Column: TColumn);


destructor Destroy;


procedure DrawColumnCell(const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState);

Here we identify what is to be shown (Memo or Grafic?) To handle other kinds on blobs, like richtext, I don't see any alternatives but create a more memory eater control like TRichText itself and copying it's canvas.

procedure MyWriteText( Canvas: TCanvas; Text: TStringList; Limitation: TRect);

Here we do the wrap text stuff, I've decided do my own, in order to not waste memory creating one TMemo or like just to do this.

Properties

property Align :


property BorderStyle :


property Color :


property Columns :


property Ctl3D :

StoreColumns;

property DataSource :


property DefaultColWidth :


property DefaultDrawing :


property DefaultRowHeight :


property DragCursor :


property DragMode :


property EditFormCaption : String


property Enabled :


property FixedColor :


property Font :


property ImeMode :


property ImeName :


property Options :


property ParentColor :


property ParentCtl3D :


property ParentFont :


property ParentShowHint :


property PopupMenu :


property ReadOnly :


property ShowHint :


property TabOrder :


property TabStop :


property TitleFont :


property Visible :


property Canvas :

Protected declarations } { Public declarations

property ColWidths :


property RowHeights :


property SelectedRows :


Events

event OnCellClick :

Published declarations

event OnColEnter :


event OnColExit :


event OnColumnMoved :


event OnDblClick :


event OnDragDrop :


event OnDragOver :


event OnDrawColumnCell :

obsolete

event OnDrawDataCell :


event OnEditButtonClick :


event OnEndDrag :


event OnEnter :


event OnExit :


event OnKeyDown :


event OnKeyPress :


event OnKeyUp :


event OnStartDrag :


event OnTitleClick :


Variables

FEditFormCaption : String;

Private declarations


Constructors


constructor Create(AOwner: TComponent);


Functions


procedure CellClick(Column: TColumn);


destructor Destroy;


procedure DrawColumnCell(const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState);

Here we identify what is to be shown (Memo or Grafic?) To handle other kinds on blobs, like richtext, I don't see any alternatives but create a more memory eater control like TRichText itself and copying it's canvas. But I am open to new ideas!


procedure MyWriteText( Canvas: TCanvas; Text: TStringList; Limitation: TRect);

Here we do the wrap text stuff, I've decided do my own, in order to not waste memory creating one TMemo or like just to do this... I've used the TFont with all defaults, but if someone decide to add some properties to handle the memo's font - go ahead, it isn't hard


Properties


property Align :


property BorderStyle :


property Color :


property Columns :


property Ctl3D :

StoreColumns;


property DataSource :


property DefaultColWidth :


property DefaultDrawing :


property DefaultRowHeight :


property DragCursor :


property DragMode :


property EditFormCaption : String


property Enabled :


property FixedColor :


property Font :


property ImeMode :


property ImeName :


property Options :


property ParentColor :


property ParentCtl3D :


property ParentFont :


property ParentShowHint :


property PopupMenu :


property ReadOnly :


property ShowHint :


property TabOrder :


property TabStop :


property TitleFont :


property Visible :


property Canvas :

Protected declarations } { Public declarations


property ColWidths :


property RowHeights :


property SelectedRows :


Events


event OnCellClick :

Published declarations


event OnColEnter :


event OnColExit :


event OnColumnMoved :


event OnDblClick :


event OnDragDrop :


event OnDragOver :


event OnDrawColumnCell :

obsolete


event OnDrawDataCell :


event OnEditButtonClick :


event OnEndDrag :


event OnEnter :


event OnExit :


event OnKeyDown :


event OnKeyPress :


event OnKeyUp :


event OnStartDrag :


event OnTitleClick :


Variables


FEditFormCaption : String;

Private declarations