![]() |
FormFactor / Orientations wie richtig benutzen?
Hallo.
Ich würde gerne Form1 nur im Portait Modus anzeigen lassen und Form2 in Portrait und Landscape. Ich habe unter den Projekt Optionen -> Orientation alle Hacken drin. Jetzt habe ich auf allen Formen alle "Möglichkeiten" (Es dreht sich auf alle Richtungen) Nun habe ich bei Form1 in OnCreate folgendes geschrieben:
Delphi-Quellcode:
So ist dann Form1 nur noch im Portrait Modus. Was ja auch so gedacht wäre.
application.FormFactor.Orientations := [TFormOrientation.soPortrait];
Aber wenn ich nun Form2 öffne und dabei den Befehl so "wiederhole":
Delphi-Quellcode:
Dann bleibt Form2 trotzdem auch nur im Portrait Modus.
application.FormFactor.Orientations := [TFormOrientation.soPortrait, TFormOrientation.soLandscape, TFormOrientation.soInvertedLandscape];
Weiss jemand wieso das so ist, respektive wie man das richtig lösen könnte? |
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:11 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz