Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Fensterposition (https://www.delphipraxis.net/17466-fensterposition.html)

ToZie 5. Mär 2004 22:42


Fensterposition
 
Hallo,

in einer MDI-Anwendung zeige ich einige Formulare modal an. Wie kann ich erreichen das diese Formulare mittig auf dem erzeugenden Formular angezeigt werde.

Code:
try
  DruckDialog:=TDruckDialog.Create(Self);
  // DruckDialog.Position:=poOwnerFormCenter; <-- ist so gesetzt
  DruckDialog.ShowModal;
finally
  DruckDialog.Release;
end;
Funktioniert tadellos bei maximiertem Hauptformular. Füllt das Hauptfenster nicht den gesamten Bildschirm aus passen die Koordinaten nicht mehr. Gibt es da eine elegante Lösung ?


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:30 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz