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: Monu Buttons



On Jun 9, 2005, at 3:51 PM, Thomas Davie wrote:
Am I missing something stunningly obvious, or is there no built in control for the cross between button and menu that is usually used for an action menus?

Spectacularly so. ;-) For simplicity, you can use a borderless NSPopupButton and simply set the image to whatever 'action button widget' image you want. Set the alt image to a shaded version.


If you want the menu to line up precisely according to your taste, you'll need to use an NSButton and a separate NSMenu and just show the menu when the button is clicked, etc.

I'm happy with the former solution for most of my needs. Others like to make it extra pretty and the latter solution is what I see suggested the most - though I admit I have never tried it myself ... because I'm a lazy, lazy man.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Monu Buttons (From: Thomas Davie <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.