11-15-2012 10:38 PM
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?
Solved! Go to Solution.