Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Cross-Platform-Entwicklung (https://www.delphipraxis.net/91-cross-platform-entwicklung/)
-   -   FormFactor / Orientations wie richtig benutzen? (https://www.delphipraxis.net/181087-formfactor-orientations-wie-richtig-benutzen.html)

gee21 14. Jul 2014 16:51

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:
 application.FormFactor.Orientations := [TFormOrientation.soPortrait];
So ist dann Form1 nur noch im Portrait Modus. Was ja auch so gedacht wäre.

Aber wenn ich nun Form2 öffne und dabei den Befehl so "wiederhole":
Delphi-Quellcode:
 application.FormFactor.Orientations := [TFormOrientation.soPortrait, TFormOrientation.soLandscape, TFormOrientation.soInvertedLandscape];
Dann bleibt Form2 trotzdem auch nur im Portrait Modus.

Weiss jemand wieso das so ist, respektive wie man das richtig lösen könnte?


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:25 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