summaryrefslogtreecommitdiff
path: root/examples/gui/gridtest
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-09-08 11:17:20 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-09-08 11:17:20 +0000
commit8c2cd0a27d852f4b02ca07850a2fbaf9cec05368 (patch)
treeb46694481fff1a719d8f6323aa02c78605d1c363 /examples/gui/gridtest
parent1e7af73a67cff669d2b5801f5097e71b30673adc (diff)
downloadfpGUI-8c2cd0a27d852f4b02ca07850a2fbaf9cec05368.tar.xz
* GUI Designer: Some code formating changes in generated code.
* GUI: minor amendments in basegrid and listbox to work correctly in the GUI Designer.
Diffstat (limited to 'examples/gui/gridtest')
-rw-r--r--examples/gui/gridtest/gridtest.lpr28
1 files changed, 14 insertions, 14 deletions
diff --git a/examples/gui/gridtest/gridtest.lpr b/examples/gui/gridtest/gridtest.lpr
index a5f1d731..ca8bd071 100644
--- a/examples/gui/gridtest/gridtest.lpr
+++ b/examples/gui/gridtest/gridtest.lpr
@@ -24,7 +24,7 @@ type
pagecontrol: TfpgPageControl;
tsTab1: TfpgTabSheet;
tsTab2: TfpgTabSheet;
- grdMain: TfpgGrid;
+ grdMain: TfpgStringGrid;
stringgrid: TfpgStringGrid;
chkShowHeader: TfpgCheckBox;
chkShowGrid: TfpgCheckBox;
@@ -45,26 +45,26 @@ type
procedure TMainForm.chkDisabledChange(Sender: TObject);
begin
- grdMain.Enabled := not chkDisabled.Checked;
- stringgrid.Enabled := grdMain.Enabled;
+// grdMain.Enabled := not chkDisabled.Checked;
+ stringgrid.Enabled := not chkDisabled.Checked;
end;
procedure TMainForm.chkRowSelectChange(Sender: TObject);
begin
- grdMain.RowSelect := chkRowSelect.Checked;
- stringgrid.RowSelect := grdMain.RowSelect;
+// grdMain.RowSelect := chkRowSelect.Checked;
+ stringgrid.RowSelect := chkRowSelect.Checked;
end;
procedure TMainForm.chkShowHeaderChange(Sender: TObject);
begin
- grdMain.ShowHeader := chkShowHeader.Checked;
- stringgrid.ShowHeader := grdMain.ShowHeader;
+// grdMain.ShowHeader := chkShowHeader.Checked;
+ stringgrid.ShowHeader := chkShowHeader.Checked;
end;
procedure TMainForm.chkShowGridChange(Sender: TObject);
begin
- grdMain.ShowGrid := chkShowGrid.Checked;
- stringgrid.ShowGrid := grdMain.ShowGrid;
+// grdMain.ShowGrid := chkShowGrid.Checked;
+ stringgrid.ShowGrid := chkShowGrid.Checked;
end;
procedure TMainForm.btnQuitClick(Sender: TObject);
@@ -97,12 +97,12 @@ begin
tsTab1 := TfpgTabSheet.Create(pagecontrol);
tsTab1.Text := 'Base Grid';
- grdMain := TfpgGrid.Create(tsTab1);
- grdMain.SetPosition(10, 10, Width-50, 250);
+// grdMain := TfpgStringGrid.Create(tsTab1);
+// grdMain.SetPosition(10, 10, Width-50, 250);
// grdMain.Anchors := [anLeft, anTop, anRight, anBottom];
- grdMain.RowCount := 25;
- for c := 1 to grdMain.ColumnCount do
- grdMain.Columns[c-1].Title := 'Title ' + IntToStr(c);
+// grdMain.RowCount := 25;
+// for c := 1 to grdMain.ColumnCount do
+// grdMain.Columns[c-1].Title := 'Title ' + IntToStr(c);
tsTab2 := pagecontrol.AppendTabSheet('String Grid');
stringgrid := TfpgStringGrid.Create(tsTab2);