Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HIVewTrackingAreas




On May 27, 2005, at 17:10, Eric Schlegel wrote:



On May 27, 2005, at 5:02 PM, Rick Mann wrote:



I realize these send my HIView enter and exit events, but do they also send mouse moved events?



No. Mouse-moved events are not automatically sent to views by the Carbon event manager. If you need those events at the view level, you could install a mouse-moved event handler on your window that locates the view under the mouse and then sends the event to the view.




What about button events? Or must I use the blocking tracking functions?



Mouse-down events are generally turned into a higher-level event, such as kEventControlClick or kEventControlTrack. They are not routed directly to views. Mouse-up events are not converted into anything higher-level, but I don't think we route them to views either - I'd have to check the source to be sure.


In either case, if you really need these events at the view level, you could install your own handler at the window level that manually resends the event to a view, but this is generally not the preferred approach. More info about how you'd like to use these events would be helpful.


Thanks, Eric. I've posted another reply that might be more enlightening.

I would basically like to get all the low-level mouse events as they pertain to a specific view, in that view's coordinate system, without having to do extra work ;-)


-- Rick


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >HIVewTrackingAreas (From: Rick Mann <email@hidden>)
 >Re: HIVewTrackingAreas (From: Eric Schlegel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.