A SERVICE OF

logo

iVIEW-100 Series user’s Manual, 2006, v2.0 ----- 152
A.3.4 Type 4: Cursor
Function Description
SetCursorLine Set the thick style of cursor line
SetCursorAt Set cursor to (X,Y)
GetCursorAt Get cursor position (X,Y)
SetCursorLine()
Func.: Set the thick style of cursor line
Syntax:
int SetCursorLine(int Line);
Header: #include ”mmi100.h”
Description:
Set cursor line’s thick
Thick style: Line= 0 ~ 8, 0=cursor off
Example:
(cursor.c)
#include "mmi100.h"
#include "iview.h"
void main()
{
int x, y, c, quit=0;
if(InitLCD()>0) Print("\nLCD wrong");
ClrScrn();
TextOutAt(3,3, "CHOOSEone:");
SetCursorLine(8);
SetCursorAt(13, 3);
GetCursorAt (&x, &y);
TextOutAt(3,4, "1. again");
TextOutAt(3,5, "2. quit");
while(!quit)
{
c=Getch();
if (c==’2’) quit=1;
}
ClrScrn();
CloseLCD();
}