diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2007-09-08 11:17:20 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2007-09-08 11:17:20 +0000 |
commit | 8c2cd0a27d852f4b02ca07850a2fbaf9cec05368 (patch) | |
tree | b46694481fff1a719d8f6323aa02c78605d1c363 /src | |
parent | 1e7af73a67cff669d2b5801f5097e71b30673adc (diff) | |
download | fpGUI-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 'src')
-rw-r--r-- | src/gui/gui_basegrid.pas | 4 | ||||
-rw-r--r-- | src/gui/gui_listbox.pas | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/gui_basegrid.pas b/src/gui/gui_basegrid.pas index 5ffaa9ef..e2a1b903 100644 --- a/src/gui/gui_basegrid.pas +++ b/src/gui/gui_basegrid.pas @@ -576,6 +576,10 @@ end; procedure TfpgBaseGrid.HandleShow; begin inherited HandleShow; + if (csDesigning in ComponentState) then + Exit; + if (csLoading in ComponentState) then + Exit; UpdateScrollBars; end; diff --git a/src/gui/gui_listbox.pas b/src/gui/gui_listbox.pas index 799f8aaf..e6dbb77c 100644 --- a/src/gui/gui_listbox.pas +++ b/src/gui/gui_listbox.pas @@ -441,6 +441,10 @@ end; procedure TfpgBaseListBox.HandleShow; begin +// if (csDesigning in ComponentState) then +// Exit; + if (csLoading in ComponentState) then + Exit; UpdateScrollBarCoords; UpdateScrollBar; inherited HandleShow; |