delphi xe 应用程序横竖屏设置
来源:互联网 发布:专业八级 知乎 编辑:程序博客网 时间:2024/04/30 01:20
http://blog.csdn.net/delphiteacher/article/details/9720831参考这个
1、应用程序禁止竖屏代码
- Application.Initialize;
- //禁止竖屏,只允许横屏
- Application.FormFactor.Orientations := [TFormOrientation.soLandscape, TFormOrientation.soInvertedLandscape];
- //禁止横屏,只允许竖屏
- //Application.FormFactor.Orientations := [TFormOrientation.soPortrait, TFormOrientation.soInvertedPortrait];
- Application.CreateForm(TForm1, Form1);
- Application.Run;
2、工程中设置
在工程管理视图中鼠标右键,在弹出的菜单中选择Options…,在左边的列表中选中Application,在右边面板区域中的Orientation页,勾选Custom orientation,你就可以勾选它下面的四个选项(Portrait,Upside down,Landscape home right,Landscape home left),其中Landscape home right,Landscape home left表示横屏,Portrait,Upside down表示竖屏。
当然,它其实也是在工程代码中加上前面我们讲的那句代码。
0 0
- delphi xe 应用程序横竖屏设置
- Delphi XE之路(5)让应用程序禁止竖屏(只显示横屏)
- Android横竖屏设置
- android 横竖屏设置
- ANDROID 设置横竖屏
- 设置允许横竖屏
- andriod横竖屏设置
- iOS横竖屏设置
- 设置Activity横竖屏
- ecilpse 设置横竖屏
- Android横竖屏设置
- Delphi XE 彩蛋
- Delphi XE 随想
- delphi xe一些变化
- 【转】Delphi XE 随想
- delphi xe 正则表达式
- LockBox for Delphi-XE
- Delphi XE 开发IOS
- timberland pas cher functioning boots|timberland remains
- 系统
- 程序员之路──关于代码风格
- jquery类库
- 【Android动画】之Tween动画 (渐变、缩放、位移、旋转)
- delphi xe 应用程序横竖屏设置
- ATMEL ATSAMD20G15的USART端口收发
- Brackets - POJ 1955 dp
- Java—Callable,Future的使用
- java一些jar包的作用
- android ant 批量打包
- unity打包64位出错
- hdu 1584 蜘蛛牌 DFS解法
- Keil编译出现“Error: L6406W: No space in execution regions with .ANY selector match Section"的解决办法