summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-11 09:00:21 +0200
committerErich Eckner <git@eckner.net>2018-10-11 09:00:21 +0200
commit61e8604818ab9875f0744faecad2b502aa339415 (patch)
treeb52fec863326ad6a9f004affe044f46d3a9f6755
parente70e64370c3e0bdbb101e43ea93b705ce797ec8f (diff)
downloadRaetsel-61e8604818ab9875f0744faecad2b502aa339415.tar.xz
unit1.pas: Fnester zentrieren
-rw-r--r--unit1.pas4
1 files changed, 4 insertions, 0 deletions
diff --git a/unit1.pas b/unit1.pas
index cf26780..e8132be 100644
--- a/unit1.pas
+++ b/unit1.pas
@@ -52,6 +52,8 @@ begin
{$IFDEF DEBUG}
writeln('application.createForm(tForm2, form2);');
{$ENDIF}
+ form2.left:=(screen.width-form2.width) div 2;
+ form2.top:=(screen.height-form2.height) div 2;
case form2.showmodal of
mrBuchstabenraetsel:
raetsel:=tBuchstabenRaetsel.create(form1);
@@ -64,6 +66,8 @@ begin
end;
end;
raetsel.onSetCaption:=@onSetCaption;
+ left:=(screen.width-width) div 2;
+ top:=(screen.height-height) div 2;
end;
procedure tForm1.onSetCaption(c: string);