Re: can't make an NSButton small enough
Re: can't make an NSButton small enough
- Subject: Re: can't make an NSButton small enough
- From: Lance Saleme <email@hidden>
- Date: Fri, 8 Jul 2005 10:11:38 -0700
Try the following:
Rounded Bevel Button
No button text
Not Bordered
Icon Position Center (no label)
Frame set to 13 x 13
I tried it in IB and get a 13 x 13 clickable block. I don't have a
tiny icon to test how it looks, but it gets what you seem to desire
below. Good luck.
Hope that helps,
Lance
On Jul 8, 2005, at 9:34 AM, Ben Dougall wrote:
On Friday, July 8, 2005, at 05:28 pm, Ben Dougall wrote:
On Friday, July 8, 2005, at 05:10 pm, Ben Dougall wrote:
On Friday, July 8, 2005, at 04:57 pm, SA Dev wrote:
Ben:
Try creating a brand new button, then setting it to small
square button. That is all that is needed to allow the height to
be set as well. This has always worked for me and worked when I
just tried it. I even put in a small test graphic and it worked
wonderfully (it clipped because it was actually 16x16, but the
button size remained 13x13).
maybe it's because i'm using an old verion of IB -- i'm on os x
10.2.8. this is the closest/best i can do: drag a round button
onto the window. tick 'small' checkbox. set button type to square
button. at this point the small checkbox becomes greyed out but
stays checked. in the size panel i then set the frame's width and
height to 13 but only the width accepts this value. the height
goes to 23. and attempting to drag it smaller makes no
difference. :/
i got it with this:
[theButton setBounds:NSMakeRect(0,0,13,13)];
sorry, forget that last bit above, that didn't work. it just
appeared that it had (the image moved to the bottom of the too tall
button).
ben.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40computecture.com
This email sent to email@hidden
_______________________________________________
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