BrightSign HD2000 Object Reference Manual User Manual
Page 41

o
rotVOID SetSendEol(rotSTRING string)
o
Set the sequence sent at the end of a SendLine request. This should be left at the default value
of chr(13) for normal use.
As with any object that implements the ifStreamSend interface, a text field can be written to using the
PRINT #textfield syntax (see the example below).
It is also possible to write to a text field using the syntax PRINT #textfield, @pos where pos is the
character position in the textfield. For example, if your textfield object has 8 columns and 3 rows, writing
to position 17 writes to row 3, column 2 (positions 0-7 are in row 1; positions 8-15 are in row 2; positions
16-23 are in the last row).
When output reaches the bottom of the text field it will automatically scroll.
For a more complex roTextField example, download the file snake.bas from the software downloads
section of
.
Example:
meta = CreateObject("roAssociativeArray")
meta.AddReplace("CharWidth", 20)
meta.AddReplace("CharHeight", 32)
meta.AddReplace("BackgroundColor", &H101010) ' Dark grey
meta.AddReplace("TextColor", &Hffff00) ' Yellow
vm = CreateObject("roVideoMode")
tf = CreateObject("roTextField", vm.GetSafeX(), vm.GetSafeY(), 20, 20,
meta)
print #tf, "Hello World"
tf.SetCursorPos(4, 10)
print #tf, "World Hello"
41