diff options
author | Erich Eckner <git@eckner.net> | 2018-10-11 09:00:21 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-10-11 09:00:21 +0200 |
commit | 61e8604818ab9875f0744faecad2b502aa339415 (patch) | |
tree | b52fec863326ad6a9f004affe044f46d3a9f6755 | |
parent | e70e64370c3e0bdbb101e43ea93b705ce797ec8f (diff) | |
download | Raetsel-61e8604818ab9875f0744faecad2b502aa339415.tar.xz |
unit1.pas: Fnester zentrieren
-rw-r--r-- | unit1.pas | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |