Important: The information in this document is obsolete and should not be used for new development.
|
|
Log In | Not a Member? |
Contact ADC |
Handling Mouse Events in Controls
When the user presses the mouse button, your application receives a mouse-down event. Use the Window Manager functionFindWindowto determine which window contains the cursor. If the mouse-down event occurred in the content region of your application's active window, use theFindControlfunction 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 theTrackControlfunction.
Subtopics
- FindControl
- TrackControl
- TestControl
Get information on Apple products.
Visit the Apple Store online or at retail locations. 1-800-MY-APPLE Copyright © 2007 Apple Inc. All rights reserved. | Terms of use | Privacy Notice |