
45
Returns
:
If the setting is successful, it returns
TRUE
, otherwise returns
FALSE
.
◆
Graphics-Text Mode
clrline
Purpose
:
Use
Clrline
to clear the contents of the whole line which the cursor
located, and fill up with the current text window background color.
Syntax
:
void clrline(int nLinePos, int nLineAmount);
Example call
:
clrline(0, 1); // clear the first line.
Includes
:
#include
“
UserLib.h
"
Description
:
The
Clrline
function will fill up the whole character space in the line
specified by
nLinePos
with the current text background color. When
the content in text window is cleared, the cursor will be moved to the
left start position of the specified line.
clrscr
Purpose
:
Use
Clrscr
to clear the contents in the text window, and fill up with
the current text window background color.
Syntax
:
void clrscr(void);
Example call
:
clrscr ();
Includes
:
#include
“
UserLib.h
"
Description
:
The
Clrscr
function will fill up the whole character space in the text
window with the current text background color. When the content in
the text window is cleared, the cursor will be moved to the left up
side of the window.
CursorGetYLinePos
Purpose
:
Use
CursorGetYLinePos
to return the current cursor line position.
Syntax
:
int CursorGetYLinePos(void);
Example call
:
num_line = CursorGetYLinePos();
Includes
:
#include
“
UserLib.h
"
Description
:
The
CursorGetYLinePos
function returns the current cursorline
position. “0” indicates the first line.
Returns
:
The
CursorGetYLinePos
function returns the current line position.
CursorMoveLine
Purpose
:
Use
CursorMoveLine
to move cursor to the specified line position.
Syntax
:
void CursorMoveLine(int nXPos, int nYLinePos);
Example call
:
CursorMoveLine (0, 0); //move cursor to the position of X axle 0 and
Y axle 0.
Includes
:
#include
“
UserLib.h
"
Description
:
The
CursorMoveLine
function moves current cursor to the specified
Содержание PT-10
Страница 4: ...3 Keyboard Wedge 99 System 101 Power 102 Other 102 ...
Страница 13: ...12 6 Development Flow Chart ...
Страница 53: ...52 Returns No returns Notes ...