summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui_basegrid.pas4
-rw-r--r--src/gui/gui_listbox.pas4
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;