Important: The information in this document is obsolete and should not be used for new development.
Show_Cursor
You use theShow_Cursor
procedure to display the cursor on the screen if you have used theHide_Cursor
procedure (described on page 8-26) to remove the cursor from the screen.
PROCEDURE Show_Cursor (cursorKind: Cursors);
- cursorKind
The kind of cursor to show. To specify one of the standard cursors, you can use one of these values defined by theCursors
data type.TYPE Cursors = {values to pass Show_Cursor} (HIDDEN_CURSOR, {the current cursor} I_BEAM_CURSOR, {the I-beam cursor; to select text} CROSS_CURSOR, {the crosshairs cursor; to draw } { graphics} PLUS_CURSOR, {the plus sign cursor; to select } { cells} WATCH_CURSOR, {the wristwatch cursor; to } { indicate a short operation in } { progress} ARROW_CURSOR); {the standard cursor}DESCRIPTION
TheShow_Cursor
procedure increments the cursor level, which may have been decremented by theHide_Cursor
procedure, and displays the specified cursor on the screen only if the level becomes 0 (it is never incremented beyond 0). You can specify one of the standard cursors or the current cursor by passing one of the previously listed values in thecursorKind
parameter. If you specify one of the standard cursors, theShow_Cursor
procedure calls theSetCursor
procedure for the specified cursor prior to callingShowCursor
. If you specifyHIDDEN_CURSOR
, this procedure just callsShowCursor
. Before usingShow_Cursor
, you must use theInitCursorCtl
procedure, which is described on page 8-20.SPECIAL CONSIDERATIONS
The valueARROW_CURSOR
works correctly only if the basic QuickDraw global variables have been set up by using theInitGraf
procedure, which is described in the chapter "Basic QuickDraw" in this book.SEE ALSO
Figure 8-3 on page 8-8 illustrates the cursors represented by theCursors
data type.