Re: How do I create a "small" radio button dynamically?
Re: How do I create a "small" radio button dynamically?
- Subject: Re: How do I create a "small" radio button dynamically?
- From: Chris Ridd <email@hidden>
- Date: Tue, 09 Mar 2004 17:16:13 +0000
On 9/3/04 4:55 pm, Huyler, Christopher M <email@hidden> wrote:
>
In Interface Builder, you can change the size of a radio button between
>
regular, small, and mini. How do I do this with a dynamically created
>
radio button?
>
>
NSButtonCell *button = [[NSButtonCell alloc] init];
>
[button setButtonType:NSRadioButton];
>
[button setTitle:@"Option 1"];
>
[button setFont:[NSFont systemFontOfSize:11.0]];
>
...
>
>
The above code will create a radio button with the correct font size for
>
the title. However it will still have a large button that will get
>
clipped when I try to display it.
Try [button setControlSize: NSSmallControlSize];
Cheers,
Chris
_______________________________________________
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.