• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I create a "small" radio button dynamically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >How do I create a "small" radio button dynamically? (From: "Huyler, Christopher M" <email@hidden>)

  • Prev by Date: Re: Convert Charatcers
  • Next by Date: Re: How do I create a "small" radio button dynamically?
  • Previous by thread: How do I create a "small" radio button dynamically?
  • Next by thread: Re: How do I create a "small" radio button dynamically?
  • Index(es):
    • Date
    • Thread