• 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: Round Image on Round Button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Round Image on Round Button


  • Subject: Re: Round Image on Round Button
  • From: August Trometer <email@hidden>
  • Date: Sun, 25 Sep 2005 17:02:38 -0500

Turn off the button border (in IB or with setBordered:), then your image is the only thing that is seen.

-- August



On Sep 25, 2005, at 9:15 AM, Jerry Krinock wrote:

I've never seen a round image on a round button, and now I probably know
why. Instead of exactly covering the button, the system positions my image
about 1-2 pixels too high too far to the right on the button, so it looks
ugly:


http://www.sheepsystems.com/Round_on_Round.png

Does anyone know how to fix this? I have tried to "fool" it by scaling and
clipping the image and/or alpha mask by 1-2 pixels, but it just gets worse.


Assuming the answer is "no", I suppose one could maybe subclass NSControl
and make his own button class? But I've never done anything like this and
I'd appreciate a pointer or two before I go dig myself into the wrong hole.


Jerry Krinock

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Round Image on Round Button (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Additional Favicon info using WekKit
  • Next by Date: NSRectFIll() taking 0.03 seconds, too slow?
  • Previous by thread: Round Image on Round Button
  • Next by thread: Replacing the view in NSTabView
  • Index(es):
    • Date
    • Thread