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: 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

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996