Microsoft KB Archive/45056

= ChangeCursor Changes Macintosh Mouse Cursor to Wristwatch =

Article ID: 45056

Article Last Modified on 11/21/2006



This article was previously published under Q45056



SUMMARY
The mouse pointer (cursor) in Macintosh QuickBASIC can be changed using the MBLC routine &quot;ChangeCursor id%&quot;. The cursor may be returned to the default cursor with the INITCURSOR routine that is built into QuickBASIC. These routines are found on Pages 476 and 410, respectively, in the &quot;Microsoft QuickBASIC for Apple Macintosh: Language Reference.&quot; Below is a demonstration of how these routines work.



MORE INFORMATION
The following sample program changes the mouse cursor shape from the standard arrow to a wristwatch, and then back again: id% = 4                     'Wristwatch cursor id number PRINT &quot;Press any key to return the cursor to normal&quot; ChangeCursor id% WHILE INKEY$ = &quot;&quot; : WEND CALL INITCURSOR END Use id% = 1 for Text cursor 2 for Crosshairs cursor 3 for Cross-shaped cursor 4 for Wristwatch cursor

Additional query words: MQuickB

Keywords: KB45056

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.