summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-06-24 13:20:24 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-06-24 13:20:24 +0000
commitd3899e742e2a205b2e6138384eef731c46401ed5 (patch)
treea1726aec4d1a4fc4a7ebd65341e35503149e6eed
parent626b9d82f7c6351d5f8dbf1bc5011fc48387e210 (diff)
downloadfpGUI-d3899e742e2a205b2e6138384eef731c46401ed5.tar.xz
* Temporary workaround for TfpgForm under X11 fixing Alignment components. See comment in code for details.
-rw-r--r--src/gui/gui_form.pas6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/gui_form.pas b/src/gui/gui_form.pas
index 843345d1..438a675b 100644
--- a/src/gui/gui_form.pas
+++ b/src/gui/gui_form.pas
@@ -293,6 +293,12 @@ begin
inherited HandleShow;
if Assigned(FOnShow) then
FOnShow(self);
+ {$IFDEF UNIX}
+ { TODO : A temporary work-around because XLib doesn't sent a Resize event
+ when the form is created. It's clever enough to size the form beforehand,
+ but without this call the Alignment code doesn't execute. }
+ inherited HandleResize(FWidth, FHeight);
+ {$ENDIF}
end;
procedure TfpgForm.HandleMove(x, y: TfpgCoord);