summaryrefslogtreecommitdiff
path: root/examples/apps
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-05-05 11:11:16 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-05-05 11:11:16 +0000
commita461d3206b5625fb7a45cafa218495ea59868927 (patch)
treeee965fa3278efcbf3d4605a47a9fabea3aaf89c8 /examples/apps
parent50dff4b82733d267e0b5b7dba5b35d0036b5c333 (diff)
downloadfpGUI-a461d3206b5625fb7a45cafa218495ea59868927.tar.xz
* Fixed the Grid creation and setup. It caused issues in the UI Designer under Windows.
Diffstat (limited to 'examples/apps')
-rw-r--r--examples/apps/uidesigner/vfdpropeditgrid.pas3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/apps/uidesigner/vfdpropeditgrid.pas b/examples/apps/uidesigner/vfdpropeditgrid.pas
index e469abec..97ebb0e6 100644
--- a/examples/apps/uidesigner/vfdpropeditgrid.pas
+++ b/examples/apps/uidesigner/vfdpropeditgrid.pas
@@ -380,9 +380,10 @@ end;
function TColumnsGrid.GetRowCount: Longword;
begin
try
+ // Yes, it must be ColumnCount and *not* RowCount!
Result := dbgrid.ColumnCount;
except
- Result := inherited GetRowCount;
+ Result := inherited GetColumnCount;
end;
end;