HIView Frame/Bounds
HIView Frame/Bounds
- Subject: HIView Frame/Bounds
- From: "Art Gillespie" <email@hidden>
- Date: Thu, 15 Mar 2007 11:35:30 -0700
I have a question about chrome/offsets with an HIView embedded in AUCarbonViewBase's mCarbonPane member.
I register an event handler for kWindowMouseMoved on mCarbonWindow. According to the docs, I would expect the kEventParamWindowMouseLocation parameter for this event to have window-relative coordinates, but it doesn't... the coordinates I get already seem to take into account any chrome the AU Host has above my view.
i.e., if I move the mouse pointer to the left edge of the view and to the vertical position where the hosts' chrome meets the top of my view, kEventParamWindowMouseLocation will report 1,1.
This behavior is consistent across every PPC (
10.4.8) host with top-chrome I've tried: AULab (both Composited/Non-Composited views), Digital Performer 5.11, Logic 7.3.
This is actually pretty cool (it just works!), but I don't understand how and it's driving me batshit. Since it's consistent across hosts, I looked for magic in
AUCarbonViewBase.cpp, but I don't see anything unusual. Are all the hosts intercepting these window events and offsetting coordinates before my handler gets them?
Thanks,
Art
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden