- 人气:
- 放大
- 缩小
- 二维码
- 赞赏
delphi xe 横屏竖屏的管理
在FromShow事件上面或者FormCreate事件:
Application.FormFactor.Orientations := [TFormOrientation.soLandscape, TFormOrientation.soInvertedLandscape];
横屏竖屏自动
Application.FormFactor.Orientations := [TFormOrientation.soLandscape];
只横屏
Application.FormFactor.Orientations := [TFormOrientation.soInvertedLandscape];
只竖屏