Metrologic Optimus S Programming Manual page 90

"c" programming guide
Table of Contents

Advertisement

84
"C" Programming Guide For Optimus S/R
wherex
wherexy
wherey
void SetCursor (int cursor);
Syntax
int cursor;
Example
SetCursor (0);
This routine displays or hides the cursor on the LCD according to the value
Description
specified. The value of the parameter status can be one of the following:
CURSOR_OFF (0) : Hide cursor (Off)
CURSOR_ON (1)
Return
None
See Also
GetCursor
Purpose
To get the x coordinate of the current cursor position.
int wherex (void);
Syntax
Example
x_position = wherex();
Description
This routine retrieves the x coordinate of the current cursor position.
Return
It returns the x coordinate.
See Also
wherexy, wherey
Purpose
To get the x coordinate and y coordinate of the current cursor position.
Syntax
void wherexy (int *column, int *row);
int *column;
int *row;
Example
wherexy (&x_position, &y_position);
This routine copies the values of the x coordinate and y coordinate of the
Description
current cursor position to the variables whose address is specified in the
arguments column and row.
Return
None
gotoxy, wherex, wherey
See Also
To get the y coordinate of the current cursor position.
Purpose
Syntax
int wherey (void);
Example
y_position = wherey();
/* turn off the cursor indication */
: Display cursor (On)
/* pointer to integer where x coordinate is stored */
/* pointer to integer where y coordinate is stored */
/* state of cursor indication */

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents