Important: The information in this document is obsolete and should not be used for new development.
RotateCursor
You can use theRotateCursor
procedure 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
TheRotateCursor
procedure animates whatever sequence of cursors you set up by using theInitCursorCtl
procedure. If the value ofcounter
is a multiple of 32, theRotateCursor
procedure calls theSetCursor
procedure to set the cursor to the next cursor frame.RotateCursor
does not show the cursor if it is currently hidden. If the cursor is hidden, you can show it by making a call toShowCursor
orShow_Cursor
(both described on page 8-28).SEE ALSO
For an example of using theRotateCursor
procedure, see Listing 8-3 on page 8-13.