Re: Programmatic layout and creating round buttons?
Re: Programmatic layout and creating round buttons?
- Subject: Re: Programmatic layout and creating round buttons?
- From: David Martin <email@hidden>
- Date: Thu, 25 Jul 2002 16:18:47 +0200
On Sunday, July 21, 2002, at 09:34 , Allan Odgaard wrote:
Secondly I need to use one of these round buttons used everywhere in
Mac OS X (e.g. with a lock, question mark, lupe, plus or minus sign on
it) -- but how do I create this in my own program? I can find it in
IB's palette (and need to set the small attribute for it to match the
height of my other UI elements), but programatically I cannot find a
'small setting'.
You could use -[NSCell setControlSize:] on your button's cell, as in:
[[yourButton cell] setControlSize:NSSmallControlSize];
Hope this helps,
David
PS: Sorry, catching up with the list ;-)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.