Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 8 - Cursor Utilities / Cursor Utilities Reference

Changing Color Cursors

This section describes how to create and display color cursors on the screen. It might be useful to display a color cursor when the user is drawing or typing in color. For example, the insertion point could appear in the color that is being used. Except for multicolored paintbrush cursors, the cursor shouldn't contain more than one color at once because it's hard for the eye to distinguish small areas of color.

To display a color cursor, you load the cursor resource into memory using the GetCCursor function. Then you specify the cursor to display on the screen using the SetCCursor procedure. Use the DisposeCCursor procedure to release the memory used by the color cursor. Although you should never need to do so (because Color QuickDraw handles this), the AllocCursor procedure reallocates cursor memory.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996