summaryrefslogtreecommitdiff
path: root/examples/apps/uidesigner/vfdpropeditgrid.pas
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-04-01 12:46:25 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-04-01 12:46:25 +0000
commit30389d52cc58fe44394695b551fb450f6945a164 (patch)
tree4f5772b796ed31d3a8b0e4a975cb7818e1256025 /examples/apps/uidesigner/vfdpropeditgrid.pas
parent2899709d66c5d72af84a9359d7cfb8402ab56b36 (diff)
downloadfpGUI-30389d52cc58fe44394695b551fb450f6945a164.tar.xz
* 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.
Diffstat (limited to 'examples/apps/uidesigner/vfdpropeditgrid.pas')
-rw-r--r--examples/apps/uidesigner/vfdpropeditgrid.pas5
1 files changed, 3 insertions, 2 deletions
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;