widget and text help

I am trying to resolve a couple of last minute issues in an app i’m building for a client and I am hoping someone else has had the same issue and knows a workaround.

The issue is using the multiline feature of the display.newText

the app is an RSS reader (thanks RobMiracle for your awesome RSS parser) and I can get all the data to display, however when I try to display the article all i get is a black box where the article should be. If I try to set the height of the text to 1024 it displays the text but cuts it off. if I use 0 for the height so it auto scales I get the black box. also i am trying to display this in a scroll view widget.

the code i use for the text object is here…

headStory = display.newText(articleStory, 0, 0, 300, 0, native.systemFontBold, 11)  
headStory:setReferencePoint( TopLeftReferencePoint )  
headStory.x=\_W\*0.5; headStory.y = headTitle.height+15;  
headStory:setTextColor(0)  

the ‘articleStory’ is a string derived from the RSS parse and stripped of the HTML. All my other objects work fine on all my other pages. this is the only one I am having issues with, and it is the only one that can cause the height to be huge. i have noticed that any story that returns a height of less than 1024 works exactly as intended by anything larger does not.

any ideas or workarounds out there?

Thanks in advance!
[import]uid: 87791 topic_id: 25810 reply_id: 325810[/import]

Ansca posted a little nugget that said the solid boxes on text was due to exceeding some texture memory limit. Sounds like that may be biting you. [import]uid: 19626 topic_id: 25810 reply_id: 104443[/import]

@robmiracle

sadly, you are probably correct :confused:

I’ve been playing with different things though today trying to get this to work and here is something weird. If i use the crawlspace lib and the paragraph function it works. However the crawlspace lib messes up my widgets. sort of a catch 22.

I’m wondering if maybe I need to create a routine that takes the string data and separates the paragraphs in the story and loops them displaying each one in a multiline newText object? do you think that would do it?

Thanks for the reply! [import]uid: 87791 topic_id: 25810 reply_id: 104499[/import]

So for anyone else having trouble…

I found this and after some trial and error , and a few tweaks it works great !
http://developer.anscamobile.com/code/text-wrapper-class

Kudos to sunmils for it! [import]uid: 87791 topic_id: 25810 reply_id: 104507[/import]