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

Adobe AIR Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

New Contributor
Posts: 6
Registered: ‎03-05-2011
My Device: Not Specified
Accepted Solution

BB10 SDK 3 qnx.fuse.ui.text.Label issues

		textFormat.size = 22; //Added this in to change font size
		var lblText1:Label = new Label();
		lblText1.text = "Click \n on board to resume game";
//		lblText1.wordWrap=true;
//		lblText1.autoSize= TextFieldAutoSize.LEFT;




This is probably a noob question but.... I made a PlayBook app a while back and I'm trying to update it to use the latest SDK so that I can submit it for BB10. I seem to have everything scaled and working except for the text.

I went from importing "qnx.ui.text.Label" to "qnx.fuse.ui.text.Label" and from "flash.text.TextFormat" to "qnx.fuse.ui.text.TextFormat".

After this, I could no longer use "Label.wordWrap" and "Label.autoSize". I also can't seem to get newline to work... the "\n" doesn't show up on the screen but it doesn't put a new line either. I also tried using Label.htmlText to use <br/> instead of \n but it had the same problem.


Right now the texts are the correct font size (I went in and added that in for everything) but I couldn't find a way to fix wordWrap. Could someone please help me with wordWrap and as to why newline isn't working?





Posts: 227
Registered: ‎01-17-2012
My Device: PB
My Carrier: ATT

Re: BB10 SDK 3 qnx.fuse.ui.text.Label issues

you need to add:

lblText1.maxLines = 0;


New Contributor
Posts: 6
Registered: ‎03-05-2011
My Device: Not Specified

Re: BB10 SDK 3 qnx.fuse.ui.text.Label issues

Thanks !!