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

Native Development

Reply
Developer
sreejond
Posts: 49
Registered: ‎03-27-2013
My Device: z10

Developing a custom speech bubble

I am new to BB10 application development. I am building an BB10 app where the user needs to be able to add speech bubbles (think comics) over OpenGL surface. I have some questions on how to implement this,

  • Should i build a custom component? can you help me to build the appropriate one?
  • Allow the user to move the speech bubble using touch- Any pointers or examples would be great!
  • Also resize the speech depending on the amount of text - Any pointers or examples would be great!

Please i need your help!!

Retired
psapra
Posts: 74
Registered: ‎07-22-2008
My Device: BlackBerry Z10

Re: Developing a custom speech bubble

You should be able to accomplish this by doing a Cascades Foriegn Window overlay over the OpenGL ES surface.  Please review the following to see if this approach would address your use case.

 

http://supportforums.blackberry.com/t5/Native-Development/Mixing-Cascades-and-OpenGL-ES/td-p/1773455

https://github.com/blackberry/Cascades-Community-Samples/blob/master/GoodCitizenCascades

 

Thanks,
Pratik Sapra
Gaming & Apps Consultant
Developer Relations
@pratiksapra