How do I create a "small" radio button dynamically?
How do I create a "small" radio button dynamically?
- Subject: How do I create a "small" radio button dynamically?
- From: "Huyler, Christopher M" <email@hidden>
- Date: Tue, 9 Mar 2004 11:55:48 -0500
- Thread-topic: How do I create a "small" radio button dynamically?
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.
~ Chris
--
Christopher Huyler
Computer Associates Intl.
mailto:email@hidden
_______________________________________________
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.