delphi XE7 判断手机返回键
2014-10-29 10:18
87 查看
Using the Android Device's Back Button
To make your application handle when users press the Back button on their Android device, add an event handler to your form for OnKeyUp, and use the following code within your event handler:Delphi:
if Key = vkHardwareBack then begin // Do whatever you want to do here Key := 0; // Set Key = 0 if you want to prevent the default action end;
C++:
if (Key == vkHardwareBack) { // Do whatever you want here Key = 0; // Set Key = 0 if you want to prevent the default action }
相关文章推荐
- DELPHI XE7 手机安卓框架 演示功能
- jsp判断请求来自手机示例代码
- 判断是不是合法手机
- ios判断手机号码
- Android如何判断当前手机是否正在播放音乐,并获取到正在播放的音乐的信息
- IOS正则判断手机号码,电话号码函数
- H5网页判断手机横屏或是竖屏
- 判断Android手机是否联网的方法
- 用程序判断一个QQ号码是否在线、是否存在(delphi调用webService)
- android 判断手机是否已联网
- Delphi 打开/关闭/判断Aero效果
- android 简单通知实现 和 手机运营商判断
- 如何判断手机是否处于漫游状态?
- JS判断手机浏览器
- Delphi 中的 XMLDocument 类详解(10) - 判断节点类型: 支节点、叶节点、文本节点、空节点
- Delphi中判断一个字符的位置在字符串开头或者末尾
- JS判断请求来自Android手机还是iPhone手机,根据不同的手机跳转到不同的链接。
- js判断是手机访问还是电脑访问
- js判断手机系统是android还是ios
- 判断是否为手机号码