• 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: Programmatic layout and creating round buttons?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Programmatic layout and creating round buttons?
      • From: Allan Odgaard <email@hidden>
References: 
 >Programmatic layout and creating round buttons? (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: What is the purpose of static typing?
  • Next by Date: Re: Adding custom string encodings to NSString/CFString
  • Previous by thread: Programmatic layout and creating round buttons?
  • Next by thread: Re: Programmatic layout and creating round buttons?
  • Index(es):
    • Date
    • Thread