- Inside Macintosh: Macintosh Toolbox Essentials /
- Chapter 5 - Control Manager / Control Manager Reference
- Control Manager Routines
Handling Mouse Events in Controls
When the user presses the mouse button, your application receives a mouse-down event. Use the Window Manager function FindWindow to determine which window contains the cursor. If the mouse-down event occurred in the content region of your application's active window, use the FindControl function to determine whether the cursor was
in an active control and, if so, which control. To follow and respond to the cursor movements in that control, and then to determine in which part of the control the mouse-up event occurs, use the TrackControl function.
Subtopics
- FindControl
-
- TrackControl
-
- TestControl
-
© Apple Computer, Inc.
11 JUL 1996