summaryrefslogtreecommitdiff
path: root/src/gui/gui_panel.pas
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-06-27 12:45:47 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-06-27 12:45:47 +0000
commiteb703bcee1956bcf075a64eaae2756eb7d48ed42 (patch)
tree856c1aa072a1d243c638bbff163da66bc94e4e2f /src/gui/gui_panel.pas
parent328be13f54585df2851894ef8f81358fdc27c5cb (diff)
downloadfpGUI-eb703bcee1956bcf075a64eaae2756eb7d48ed42.tar.xz
* Introduced a new property to TfpgWidget, called IsContainer for all
components that act like containers (Panel, Form, etc). This optimizes the Component Alignment calls. * All resizing calls now get routed through DoUpdateWindowPosition() so they have a more consistent execution path. * OnResize now get fired when components get resized, and not just for Forms. * HandleAlignments() is now only called when needed. * Fixed the bug where Alignment didn't work when components are resized at runtime. * Removed compiler warnings form gui_mru.pas unit. * Memo's scrollbar now gets adjusted correctly when it's text is modified via code. * Minor bug fix when deleting line in a Memo component. The 'Index out of Bounds' error still occurs though. That will be fixed shortly.
Diffstat (limited to 'src/gui/gui_panel.pas')
-rw-r--r--src/gui/gui_panel.pas1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/gui_panel.pas b/src/gui/gui_panel.pas
index 2e4280c5..fc9df44d 100644
--- a/src/gui/gui_panel.pas
+++ b/src/gui/gui_panel.pas
@@ -241,6 +241,7 @@ begin
FHeight := 80;
FFocusable := True; // otherwise children can't get focus
FBackgroundColor := Parent.BackgroundColor;
+ FIsContainer := True;
end;
{TfpgBevel}