FROM : Amar Sagoo
DATE : Tue Oct 12 22:42:37 2004
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
DATE : Tue Oct 12 22:42:37 2004
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
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

