Important: The information in this document is obsolete and should not be used for new development.
SetCursorAfter using the
GetCursorfunction to return a handle to a cursor as described in the preceding section, you can use the
SetCursorprocedure to make that cursor the current cursor.
PROCEDURE SetCursor (crsr: Cursor);
Cursorrecord, as described on page 8-14.
SetCursorprocedure displays the cursor you specify in the
crsrparameter. If the cursor is hidden, it remains hidden and attain its new appearance only when it's uncovered. If the cursor is already visible, it changes to the new appearance immediately.
You need to use the
InitCursorprocedure (described on page 8-20) to initialize the standard arrow cursor and make it visible on the screen before you can call
SetCursorto change the cursor's appearance.
To display a color cursor, you must use the
SetCCursorprocedure, which is described on page 8-24.
SEE ALSOListing 8-2 on page 8-9 illustrates how to use the
SetCursorroutines to change the cursor's shape.