Important: The information in this document is obsolete and should not be used for new development.
Chapter 8 - Cursor Utilities
This chapter describes the utilities that your application uses to draw and manipulate the cursor on the screen. You should read this chapter to find out how to implement cursors in your application. For example, you should change the arrow cursor to an I-beam cursor when it's over text and to an animated cursor when a medium-length process is under way.Cursors are defined in resources; the routines in this chapter automatically call the Resource Manager as necessary. For more information about resources, see the chapter "Resource Manager" in Inside Macintosh: More Macintosh Toolbox. Color cursors are defined in resources as well, though they use Color QuickDraw. For information about Color QuickDraw, see the chapter "Color QuickDraw" in this book.
This chapter describes how to
- create and display black-and-white and color cursors
- change the cursor's shape over different areas on the screen
- display an animated cursor
Chapter Contents
- About the Cursor
- Using the Cursor Utilities
- Initializing the Cursor
- Changing the Appearance of the Cursor
- Creating an Animated Cursor
- Cursor Utilities Reference
- Data Structures
- Routines
- Initializing Cursors
- Changing Black-and-White Cursors
- Changing Color Cursors
- Hiding and Showing Cursors
- Displaying Animated Cursors
- Resources
- The Cursor Resource
- The Color Cursor Resource
- The Animated Cursor Resource
- Summary of Cursor Utilities
- Pascal Summary
- Constants
- Data Types
- Routines
- C Summary
- Constants
- Data Types
- Functions
- Assembly-Language Summary
- Data Structures
- Global Variables