Creates an advanced textbox that has scrolling text, text properties (color, speed, depth, etc.), automatic text wrapping, textbox styles, and more! See instructions for more details.
Instructions:
Load into any slot to use in your program:
LOAD "PRG1:TEXTBOX-V1"
Then use the
TEXTBOX command to create a textbox!
TEXTBOX is set up as follows:
TEXTBOX STRING$, X1, X2, Y1, Y2, STYLE, WRAP, INITAL_TEXT_PROPERTIES$
STRING is what string to pass in.
X1, X2, Y1, Y2 is what size the textbox will be.
STYLE allows you to choose from styles for the textbox, two styles are included and making more is easy
WRAP if true, turns text wrapping on.
INITAL_TEXT_PROPERTIES what text properties to start with. Use
<DE0> for default properties.
Text properties are put into the string as <>. They change various things about the text. Properties have a two letter indicator followed by a value. They are applied at the location encountered in the string. Currently, the program has the following, but more are planned:
<DF0> sets all text styles back to default. Users may define there own defaults. Put this into the INITIAL_TEXT_PROPERTIES.
<CO15> sets the text color.
<SP0> changes the speed characters scroll/appear on screen.
<WA60> pauses text scrolling for a certain amount of time.
<BE43> beep made each time a new letter is added to screen.
<DE0> depth of the text.
Therefore the string:
"How <CO5>are<CO15> are you doing!" when run through the
TEXTBOX command, would make "are" green!
Notes:
Thank you for using this program. Feel free to use this in your program, just shout me out, a_load_of_barnacles somewhere in the program! Post any questions or comments in the comments below.