Ralph
New Member
Posts: 5
|
Post by Ralph on Mar 23, 2005 20:03:07 GMT
I had this here before - deleted it, because I thought it was my fault... But it isn't ... there has to be done quite a lot with that scolltext thing I guess, until its fitting ... although I am new to Sprite Candy ... fiddeling around for more than 20 hours with that text and scroll text thing... it looks as if there's no clear concept behind it. Especially the | or chr$(13) usage looks very vague to me. And why everything is assigned to the Field txt$ first, if its then splitted to txt_wrapped$ or scroll_text$ ? XpressiveCould you please explain what were your thoughts behind that? Change the txt$ of the Example which comes with 1.0.7 and see what happens. ; TEXT lines% = 12 ; <- HOW MANY LINES TO DISPLAY txt$ = "TEXTS WITH SCROLL BAR||Press UP or DOWN to scroll this text -or use the scroll bar." Text1% = HUD_CreateText (Layer1, 320,240, txt$, "LEFT", 250, "CENTER","CENTER")
The Blitz Array out of Bounds Error is gone when you swap the two lines in HUD_SetScrollText If start_line < 1 Then start_line = 1 If start_line > tl-num_lines Then start_line = tl-num_lines But... Changing 320,240 in the above line seems to have no effect And it doesn't show up as it should either.
|
|
|
Post by Xpressive on Mar 24, 2005 10:13:18 GMT
Where do you read ' txt_wrapped$' and 'scroll_text$' in the sample code?
The reason why you're receiving an error message is quite simple: you try to create a scrollable text that is too short to be scrollable. You set the number of visible lines to 12, for example (lines% = 12) - but the text used is actually too short to do so.
Since this is currently a beta function yet, added with the last release, there are no extended error checks at the moment that cover all possible situations. These will be added with the next release, however.
EDIT: Update 1.0.8 is out which adds some more functionality to the scroll bar feature. The slider and bar will be hidden now automatically when the specified text is too short to be scrollable.
The scroll bar feature will be extended more and more with the next updates, so don't hesitate to post further feedback.
|
|