s60 5.0接收UI触击事件
来源:互联网 发布:中国金融数据 编辑:程序博客网 时间:2024/05/29 14:32
Receiving long tap events
The S60 platform includes CAknLongTapDetector
to receive long tap events. CAknLongTapDetector
is part of the Touch UI utilities API.
When the stylus is held down in the same position, an animation starts in about 0.15 s to show that the long tap functionality has started. The animation is provided by Avkon and cannot be changed by the application or control. However, animation can be turned off through the CAknLongTapDetector
API.
Your class must derive from the MAknLongTapDetectorCallBack
interface and implement its virtual HandleLongTapEventL()
method.
An example of the header file is presented below.
class CImageConverterContainer : public CCoeControl, MAknLongTapDetectorCallBack { ... private: // From MAknLongTapDetectorCallBack void HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& aPenEventScreenLocation ); private: // Data CAknLongTapDetector* iLongTapDetector; ... }
An example of handling long tap events in your code is presented below.
// Create long tap detectoriLongTapDetector = CAknLongTapDetector::NewL(this); // Your component pointer event handlingvoid CImageConverterContainer::HandlePointerEventL(const TPointerEvent& aPointerEvent) { // You must tell to long tap detector pointer all events that are received iLongTapDetector->PointerEventL(aPointerEvent); ... } void CImageConverterContainer::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /*aPenEventScreenLocation*/ ) { // What to do when user did the long tap }
- s60 5.0接收UI触击事件
- s60中UDP接收数据
- S60事件处理
- S60 发送按键事件
- 接收事件
- S60 View Architecture with UI Design
- S60
- 事件类型--UI事件
- 事件接收与忽略
- Linux 接收热插拔事件
- cocos2d接收触摸事件
- 事件接收与忽略
- pm_notifier 接收待机事件
- 4.接收事件推送
- 事件接收与忽略
- 发送与接收事件
- S60平台UI资源——编辑框
- 用S60 Touch UI API创建自定义音乐播放器
- ERP术语解释及SAP模块介绍
- 一个简单的recordset保存格式的xml转换例子。
- 2008年高性能计算回顾:十大成功与失败事件
- apache + apache c++ 扩展 + mysql + php + php c++ 扩展
- 安全技术讲解:配置IIS蜜罐抵御黑客攻击
- s60 5.0接收UI触击事件
- progress的数据库访问--事务
- 用C++扩展PHP
- 用隐藏框架实现框架之间数据传递
- 从云计算到云安全的安全发展之路(1)
- 建议CSDN的博客提供私人博客功能
- 软连接和硬连接区别
- 从云计算到云安全的安全发展之路(2)
- 从云计算到云安全的安全发展之路(1)