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: [Leopard] Spotlight/Help-like menu item




On Jan 26, 2008, at 8:45 PM, Pierre Bernard wrote:

Trouble starts when I want my view to draw a background (like the blue background used by Spotlight), I find that there remains a white area above and below my view which is drawn by the menu itself. What I am after is a way to get rid of that border.

The Help menu removes that white border by installing a Carbon event handler for kEventControlGetFrameMetrics on the menu content view (HIMenuGetContentView) and returning a top metric of zero pixels. Unfortunately there's no public way to get the MenuRef from an NSMenu, so I'm not sure this approach is viable if you only want to use public API.


-eric

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >[Leopard] Spotlight/Help-like menu item (From: Pierre Bernard <email@hidden>)
 >Re: [Leopard] Spotlight/Help-like menu item (From: Ron Fleckner <email@hidden>)
 >Re: [Leopard] Spotlight/Help-like menu item (From: Pierre Bernard <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.