Important: The information in this document is obsolete and should not be used for new development.
GetCursor
You use theGetCursorfunction to load a cursor resource (described on page 8-31) into memory. You can then display the cursor specified in this resource by calling theSetCursorprocedure (described in the next section).
FUNCTION GetCursor (cursorID: Integer): CursHandle;
cursorID- The resource ID for the cursor you want to display. You can supply one of these constants to get a handle to one of the standard cursors:
CONST iBeamCursor = 1; {to select text} crossCursor = 2; {to draw graphics} plusCursor = 3; {to select cells} watchCursor = 4; {to indicate a short operation } { in progress}DESCRIPTION
TheGetCursorfunction returns a handle to aCursorrecord (described on page 8-14) for the cursor with the resource ID that you specify in thecursorIDparameter. If the resource can't be read into memory,GetCursorreturnsNIL.To get a handle to a color cursor, use the
GetCCursorfunction, which is described on page 8-24.SEE ALSO
Listing 8-2 on page 8-9 illustrates how to use theGetCursorandSetCursorroutines to change the cursor's shape.