Borderless NSPopUpButton too wide in NSToolbar
Borderless NSPopUpButton too wide in NSToolbar
- Subject: Borderless NSPopUpButton too wide in NSToolbar
- From: Amar Sagoo <email@hidden>
- Date: Tue, 12 Oct 2004 21:42:37 +0100
Hi,
I want to add an item to my app's toolbar that pops up a menu of
commands, and shows as a 32x32 pixel icon and a black pop-up triangle,
with no border around the control.
So I tried using an NSPopUpButton and set it up as "not bordered", with
my icon as its image. However, even without a border, there are always
about 10 pixels padding to the left of the icon, which means the
minimum width for the button in my case is 42 pixels, or 52 if you want
the icon centered. This doesn't look nice if it's adjacent to other
toolbar buttons, because you get quite a gap between them.
This must just be a limitation of the NSPopUpButton control, but I'm
sure I'm not the first one to try to do this, so does anyone know a
workaround or an alternative solution?
Thanks
Amar
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden