Important: The information in this document is obsolete and should not be used for new development.
RotateCursor
You can use theRotateCursorprocedure to display an animated cursor when your application performs a medium-length operation that might cause the user to think that the computer has quit working.
PROCEDURE RotateCursor (counter: LongInt);
- counter
- An incrementing or decrementing index maintained by your application. When the index is a multiple of 32, the next cursor frame is used in the animation. A positive counter moves forward through the cursor frames, and a negative counter moves backward through the cursor frames.
DESCRIPTION
TheRotateCursorprocedure animates whatever sequence of cursors you set up by using theInitCursorCtlprocedure. If the value ofcounteris a multiple of 32, theRotateCursorprocedure calls theSetCursorprocedure to set the cursor to the next cursor frame.RotateCursordoes not show the cursor if it is currently hidden. If the cursor is hidden, you can show it by making a call toShowCursororShow_Cursor(both described on page 8-28).SEE ALSO
For an example of using theRotateCursorprocedure, see Listing 8-3 on page 8-13.