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: New Java Client Properties -- IB Pop Up Button Cell



On Nov 20, 2007, at 6:41 PM, Donald Leeper wrote:

Hi,

I'm trying to implement a popup similar to the way Xcode and BBEdit do in the control bar above the editing area in their windows, what Interface Builder calls a Pop Up Button Cell. This would be a "small" JComboBox but with the color removed from behind the up/down arrows. Is there a way to do this?

Thanks for any suggestions.

You can use a vertically constrained "small" or "mini" "segmented" control set to the "middle" segment. Please see the "Segmented button style" section of TN2196 (http://developer.apple.com/technotes/tn2007/tn2196.html ), for more information. The "small" and "mini" size variants work on most of the segmented and non-segmented button styles.


You will probably have to provide your own art for the double-headed popup indicator arrow though. This is probably something we should expose in NSImage.h - please file a bug if you would like this.

Thanks,
Mike Swingler
Java Frameworks Engineer
Apple Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >New Java Client Properties -- IB Pop Up Button Cell (From: Donald Leeper <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.