Important: The information in this document is obsolete and should not be used for new development.
Show_Cursor
You use theShow_Cursorprocedure to display the cursor on the screen if you have used theHide_Cursorprocedure (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 theCursorsdata 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_Cursorprocedure increments the cursor level, which may have been decremented by theHide_Cursorprocedure, 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 thecursorKindparameter. If you specify one of the standard cursors, theShow_Cursorprocedure calls theSetCursorprocedure for the specified cursor prior to callingShowCursor. If you specifyHIDDEN_CURSOR, this procedure just callsShowCursor. Before usingShow_Cursor, you must use theInitCursorCtlprocedure, which is described on page 8-20.SPECIAL CONSIDERATIONS
The valueARROW_CURSORworks correctly only if the basic QuickDraw global variables have been set up by using theInitGrafprocedure, 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 theCursorsdata type.