RFPrint Method

This member of Class WaveLinkIO is supported on iOS, Windows Mobile, Windows CE, Palm, and DOS.

The RFPrint Method displays the output text at the specified coordinates using the specified display mode.

Syntax

public void RFPrint(int nCol, int nRow, String outputText, long outputMode)
throws WaveLinkError,
IllegalArgumentException

Parameters

nCol

The x-coordinate for the output. Columns are numbered from the left starting with column 0

nRow

The y-coordinate for the output. Rows are numbered from the top starting with row 0

outputText

The data to be displayed

outputMode

The display mode of the output. The possible values for outputMode are:

WLCLEAR - Clears the device's display

WLCLREOLN - Clear text to the end of current line

WLFLUSHOUTPUT - Automatically flushes the output buffer

WLNORMAL - Normal display of text

WLREVERSE - Text is displayed in reverse colors

Throws

WaveLinkError

IllegalArgumentException

Remarks

Multiple options may be used by "ORing" the desired constants (For example, WLCLEAR | WLNORMAL).

See Constant Values for the numeric equates returned by the function.

Example

WaveLinkIO ioIface = new WaveLinkIO();

WaveLinkTerminal termIface = new WaveLinkTerminal();

string pszVerifyInput;

 

try {

// Note: Example uses the WaveLinkTerminal object to dynamically position the screen output.

ioIface.RFPrint(0, 0, "WaveLink Corporation", WaveLinkIO.WLCLEAR | WaveLinkIO.WLREVERSE);

ioIface.RFPrint(0, 1, " Auto Detailing ", WaveLinkIO.WLNORMAL);

ioIface.RFPrint(0, (termIface.TerminalHeight() – 1), " Press any key ", WaveLinkIO.WLNORMAL);

// Flush the output buffer and await keystroke/scan.

pszVerifyInput = ioIface.GetEvent();

}

catch (WaveLinkError wlErr) {

//Do error handling

}

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal