From 30389d52cc58fe44394695b551fb450f6945a164 Mon Sep 17 00:00:00 2001 From: graemeg Date: Tue, 1 Apr 2008 12:46:25 +0000 Subject: * BaseGrid.DrawCell and BaseGrid.CanDrawCell now have a GridDrawState type property which the developers can use in there custom event handlers. In unfortunately requires the gui_basegrid to be included in the uses clause. --- examples/apps/uidesigner/vfdpropeditgrid.pas | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/apps/uidesigner/vfdpropeditgrid.pas') diff --git a/examples/apps/uidesigner/vfdpropeditgrid.pas b/examples/apps/uidesigner/vfdpropeditgrid.pas index b14cb590..e469abec 100644 --- a/examples/apps/uidesigner/vfdpropeditgrid.pas +++ b/examples/apps/uidesigner/vfdpropeditgrid.pas @@ -34,6 +34,7 @@ uses gui_memo, gui_combobox, gui_customgrid, + gui_basegrid, gui_grid, gui_checkbox, vfdforms, @@ -56,7 +57,7 @@ type TColumnsGrid = class(TfpgCustomGrid) protected function GetRowCount: Longword; override; - procedure DrawCell(ARow, ACol: Longword; ARect: TfpgRect; AFlags: integer); override; + procedure DrawCell(ARow, ACol: Longword; ARect: TfpgRect; AFlags: TfpgGridDrawState); override; public dbgrid: TfpgStringGrid; constructor Create(AOwner: TComponent); override; @@ -385,7 +386,7 @@ begin end; end; -procedure TColumnsGrid.DrawCell(ARow, ACol: Longword; ARect: TfpgRect; AFlags: integer); +procedure TColumnsGrid.DrawCell(ARow, ACol: Longword; ARect: TfpgRect; AFlags: TfpgGridDrawState); var s: string; x: integer; -- cgit v1.2.3-70-g09d2