On Nov 10, 2005, at 12:49 PM, Laurence Harris wrote:
On 11/10/05 12:40 PM, Laurence Harris didst favor us with:
On 11/10/05 8:57 AM, Stephen Chu didst favor us with:
I believe you need to use view-local coordinates if the window is
composited
and port-local coordinates if not.
Do you mean I have to convert the mouse location to view-local
before
passing it to kEventWindowCursorChange?
Correct. This is what I do (and it works):
HIRect frame;
HIViewGetFrame( view, &frame );
BTW, this only works if the view's superview is the content view.
If the
view is embedded in another view, you need to use HIViewConvertRect to
convert the frame to content view coordinates.
I am getting mouse location from kEventWindowCursorChange event. So
it's in global coordinate. But I can manage that. Thanks.
_______________________________________________
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