beautypg.com

BrightSign Object Reference Manual (FW 5.1) User Manual

Page 89

background image

81

"Size"= An alternative to "CharWidth" and "CharHeight" for specifying either normal size text (0) or double-sized

text (1).


Interfaces:

ifTextField

,

ifStreamSend


The ifTextField interface provides the following:

Cls() As Void: Clears the text field.

GetWidth() As Integer: Returns the width of the text field

GetHeight() As Integer: Returns the height of the text field.

SetCursorPos(x As Integer, y As Integer) As Void: Moves the cursor to the specified position.
Subsequent output will appear at this position.

GetValue() As Integer: Returns the value of the character currently under the cursor.


The ifStreamSend interface provides the following:

SendByte(byte As Integer) As Void: Writes the character indicated by the specified number at the current
cursor position within the text field. It then advances the cursor.

SendLine(string As String) As Void: Writes the characters specified at the current cursor position
followed by the end-of-line sequence.

SendBlock(string As Dynamic) As Void: Writes the characters specified at the current cursor position and
advances the cursor to one position beyond the last character. This method can support either a string or
an

roByteArray

. If the block is a string, any null bytes will terminate the block.

SetSendEol(string As String) As Void: Sets the sequence sent at the end of a SendLine request. You
should leave this at the default value of "chr(13)" for normal use.

Note: The ifStreamSend interface is also described in the section documenting the various file objects. The interface is
described again here in a manner more specific to the roTextField object.