Welcome!

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

Reply
New Contributor
Martin226
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?

 

 

Please use plain text.
New Developer
Bacce
Posts: 11
Registered: ‎03-20-2013
My Device: Playbook
My Carrier: Nope

Re: onTouch Event

html5? you can always use canvas.:smileyhappy:
Please use plain text.
Administrator
astanley
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"

 

https://github.com/blackberry/WebWorks-Community-Samples/tree/master/sketchPad

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
Developer
peardox
Posts: 1,229
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!
Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,546
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:
https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/canvasToFilesystem

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.
Please use plain text.