(Difference between revisions)

Pointer capturing in Symbian C++ on touch-enabled devices

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot update - Merge KB into wiki)
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot update - Fix links)
(One intermediate revision by one user not shown)
Line 71: Line 71:
[[Handling pointer events in Symbian C++]]
[[Handling pointer events in Symbian C++]]
[[CS001146 - Enabling drag events in touch-enabled devices]]
[[Enabling drag events in Symbian C++ on touch-enabled devices]]
[[Category:Symbian C++]][[Category:Code Snippet]][[Category:UI]][[Category:Touch UI]][[Category:Code Snippet]]
[[Category:Symbian C++]][[Category:Code Snippet]][[Category:UI]][[Category:Touch UI]][[Category:Code Snippet]]

Latest revision as of 11:25, 5 July 2012

Article Metadata
Tested with
Devices(s): Nokia 5800 XpressMusic
Platform(s): S60 5th Edition
Keywords: CCoeControl::SetPointerCapture()
Created: tepaa (03 Oct 2008)
Last edited: hamishwillee (05 Jul 2012)


[edit] Overview

S60 5th Edition supports touch events. Pointer events are sent to the active UI application container control if the pointer/stylus is on the application.

The container control base class implementation CCoeControl::HandlePointerEvent() redirects events to its child controls. Remember to implement event handling into every custom UI control in your application.

If you want one UI control to receive all pointer events, use CCoeControl::SetPointerCapture().

[edit] MMP file

The following libraries are required:

LIBRARY cone.lib

[edit] Source file

void CMyContainer::EatAllEvents()
// This start eating all pointer events from other ui control in this application.
void CMyContainer::ReleaseEventCatching()
// Disables pointer capturing

[edit] Postconditions

One UI control receives all touch events.

[edit] See also

S60 5th Edition: Solitaire Game Example

S60 Platform: Image Converter Example

Handling pointer events in Symbian C++

Enabling drag events in Symbian C++ on touch-enabled devices

This page was last modified on 5 July 2012, at 11:25.
97 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.