Mailing Lists: Apple Mailing Lists

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

Contextual menu and compositing window



I've got a floating compositing window I load from a NIB populated with a bunch of bevel buttons, a static text field, and a separator.  For contextual menu support, I installed a kEventControlContextualMenuClick handler to the content view.  When I right click on the window, if my click lands on the static text control, separator, or window, my contextual menu appears in the correct place.  But if I right click on a bevel button, my contextual menu appears in the wrong place.  After some debugging, it appears that even though I installed my contextual menu handler on the content view, the kEventParamDirectObject I get back is whatever control I right clicked on.  And right clicking on a bevel button returns a point relative to the bevel button, not the content view (even though the other controls are handled properly).  Is this normal?

I guess I can look at the control I get back and fix the point if it's a bevel button but I want to confirm that it's a bug.

-Chinh Nguyen

 email@hidden


 _______________________________________________
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



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.