Re: HIView Frame/Bounds
Re: HIView Frame/Bounds
- Subject: Re: HIView Frame/Bounds
- From: William Stewart <email@hidden>
- Date: Fri, 16 Mar 2007 18:51:18 -0700
I thought this was how HIView's worked - all coordinates are relative
to the view's origin (top, left)
On 15/03/2007, at 11:35 AM, Art Gillespie wrote:
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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