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

Adobe AIR Development

Reply
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;

 

Hi,

 

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?

 

Thanks,

--Muskilh

 

Developer
Developer
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 !!