Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

New Contributor
Posts: 4
Registered: ‎09-11-2013
My Device: Z10 / Q10
My Carrier: T-Mobile
Accepted Solution

onTouch Event

Hi all,


I want to make a drawing field to capture something and safe as picture.

Is there any API or something?


I need the event what sould happen onTouch, onLeaveTouch or so.. maybe it is called other?



New Developer
Posts: 11
Registered: ‎03-20-2013
My Device: Playbook
My Carrier: Nope

Re: onTouch Event

html5? you can always use canvas.Smiley Happy
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: onTouch Event

Agreed. In fact, 2 years ago I wrote this sample that uses canvas + touch events to produce a drawing "sketch pad"



Follow me on Twitter: @n_adam_stanley
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Posts: 1,230
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: onTouch Event

Adam's point is the best to follow


It does what you ask but as I remember (correct me Adam) is Playbook so MAY need tweaking


I will tell you that Adam's example has made some of my friends good money

Click the like button if you find my posts useful!
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: onTouch Event

To add to Adam's suggestion, we also have a Canvas to Filesystem sample available here:

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.