Important: The information in this document is obsolete and should not be used for new development.
SetCursor
After using theGetCursor
function to return a handle to a cursor as described in the preceding section, you can use theSetCursor
procedure to make that cursor the current cursor.
PROCEDURE SetCursor (crsr: Cursor);
crsr
- A
Cursor
record, as described on page 8-14.DESCRIPTION
TheSetCursor
procedure displays the cursor you specify in thecrsr
parameter. 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
InitCursor
procedure (described on page 8-20) to initialize the standard arrow cursor and make it visible on the screen before you can callSetCursor
to change the cursor's appearance.To display a color cursor, you must use the
SetCCursor
procedure, which is described on page 8-24.SEE ALSO
Listing 8-2 on page 8-9 illustrates how to use theGetCursor
andSetCursor
routines to change the cursor's shape.