diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-07-18 13:10:28 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-07-18 13:10:28 +0000 |
commit | cfae57647a51dcc760f526085276db45d8ccd885 (patch) | |
tree | c01067b29a11fb0ac1d5084fab3f3a938d201856 | |
parent | 0af8a64c03213270d6932a56d48783f6e7e4740a (diff) | |
download | fpGUI-cfae57647a51dcc760f526085276db45d8ccd885.tar.xz |
* Minor fix in the CustomGrid SetRowCount and SetColumnCount methods. Even if those properties are set between BeginUpdate/EndUpdate calls.
-rw-r--r-- | examples/gui/filegrid/filegrid.lpr | 1 | ||||
-rw-r--r-- | src/gui/gui_customgrid.pas | 12 |
2 files changed, 8 insertions, 5 deletions
diff --git a/examples/gui/filegrid/filegrid.lpr b/examples/gui/filegrid/filegrid.lpr index 07af9520..b9d24862 100644 --- a/examples/gui/filegrid/filegrid.lpr +++ b/examples/gui/filegrid/filegrid.lpr @@ -35,7 +35,6 @@ type procedure TMainForm.chkShowHiddenChanged(Sender: TObject); begin -// FGrid. FGrid.FileList.ShowHidden := chkShowHidden.Checked; FGrid.FileList.ReadDirectory(''); fpgSendMessage(self, FGrid, FPGM_PAINT); diff --git a/src/gui/gui_customgrid.pas b/src/gui/gui_customgrid.pas index 4b0db99c..0efa0edb 100644 --- a/src/gui/gui_customgrid.pas +++ b/src/gui/gui_customgrid.pas @@ -188,8 +188,10 @@ begin end; end; - if csUpdating in ComponentState then - Exit; + // graemeg 2008-07-18: I believe after all the repaint and event fixes + // this check is not required anymore. +// if csUpdating in ComponentState then +// Exit; UpdateScrollBars; RePaint; end; @@ -203,8 +205,10 @@ begin FocusRow := FRowCount-1; DoSetRowCount(AValue); // could be implemented by descendants - if csUpdating in ComponentState then - Exit; + // graemeg 2008-07-18: I believe after all the repaint and event fixes + // this check is not required anymore. +// if csUpdating in ComponentState then +// Exit; UpdateScrollBars; RePaint; end; |