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: control moved event



You were right - once I installed the views handler on the window, the events came through.

thanks!
Kris
On Mar 1, 2005, at 7:47 PM, Laurence Harris wrote:

On 3/1/05 6:21 PM, Kristine Larson didst favor us with:

I installed the handle on the view. The window the control is in just
happens to be handling that event also, for other reasons.

I think that's why you aren't getting the event. It's a kEventClassWindow
event and doesn't get sent to controls. Install your handler on the window
and return eventNotHandledErr. The window's handler will then be able to
handle it after the control gets it (assuming you install the control's
handler after you install the window's handler).


Larry

regards, Kris On Mar 1, 2005, at 4:40 PM, Laurence Harris wrote:

On 3/1/05 5:06 PM, Kristine Larson didst favor us with:

Hello -

I am writing a custom HIView, which needs to know when it has been
moved - i.e. when the parent window is moved. I have tried handling
kEventControlBoundsChanged events, these aren't sent when the window
moves. I have also tried registering for kEventWindowBoundsChanged
events (in the view), they don't seem to get passed to my handler when
I move the window around.

Is your kEventWindowBoundsChanged handler installed on the window or the view in the window?

Larry


_______________________________________________ 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: 
 >Re: control moved event (From: Laurence Harris <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.