Could some one please tell me why this scrolling text box doesnt work?
Kaos Kidd
Posts: 614
I'v tried everything I can think of, and I just can't see why the textbox doesnt scroll or work right when the text is less then the size of the box...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Just tossing my two bits worth into the bit bucket
KK
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Just tossing my two bits worth into the bit bucket
KK
Comments
VGA.STR(Text[noparse][[/noparse]Index])
supposed to be
VGA.STR(@Text[noparse][[/noparse]Index])
?
Also shouldn't
HoldChar := Text[noparse][[/noparse]Index + Size + 1]
be
HoldChar := Text[noparse][[/noparse]Index + Size]
?
I had not thought of that... thanks for the insight and I'll give it whirl!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Just tossing my two bits worth into the bit bucket
KK
·
It's printing trash...
I changed the ref's to include @Text[noparse][[/noparse]Index]
I think it's got something to do with what is acutally created with STRING command, or what VGA.OUT is expecting
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Just tossing my two bits worth into the bit bucket
KK
·
As I figured out. Hence the VGA.STR call, now follow this: If I remove the [noparse]/noparse from the call, it prints!
Yes, if I do VGA.STR(@Text), it prints it all out.
But, if I do VGA.STR(@Text[noparse][[/noparse]Index]), I get "trash" on the screen.
I understand about the null terminator, that's how I'm setting the length of the string to print.
HoldChar = the original char, then I set it to null, print it, then reset it.
The question is simply this: Why can't I start outputing from the middle of the screen?
Eventually this routine will be included in something that gets its data from a device (like the directory of a SD device or something), which may or may not be be bigger then the scrolling window.
Oh, and BTW, thanks for helpin me out here...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Just tossing my two bits worth into the bit bucket
KK
·
I modified your code a little bit, I believe this version is closer to what you are looking for.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Post Edited (Beau Schwabe (Parallax)) : 5/23/2006 7:19:20 PM GMT
Thanks! I would have never thought of the byte command.
Slick..
THanks again all!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Just tossing my two bits worth into the bit bucket
KK
·
THe new edits are much better... and slicker!
thanks again...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Just tossing my two bits worth into the bit bucket
KK
·