• 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 to create "pressed" effect on custom rounded buttons (like Safari bookmark)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create "pressed" effect on custom rounded buttons (like Safari bookmark)


  • Subject: Re: How to create "pressed" effect on custom rounded buttons (like Safari bookmark)
  • From: "I. Savant" <email@hidden>
  • Date: Wed, 17 May 2006 15:10:53 -0400


How did you create your custom button? Did you draw it in code or did you use a pre-rendered image? Either way, you need to provide the same button with the "pressed" look.


I'd been using pre-rendered images (two images per button - one normal and one pressed) but be warned - OS X 10.5 will supposedly support scaling displays which will make this method obsolete (because the scaling will make your pre-rendered interface elements look ugly). I've since changed my ways. ;-)

I recommend drawing your buttons using code. For what it's worth, though, I believe Safari uses pre-rendered button images for the buttons you mentioned. Look in the Safari app bundle's Resources folder for an example.

--
I.S.


On May 17, 2006, at 2:56 PM, Eric wrote:

I have custom created a rounded button much like Safari's bookmark button.
However, I'm unable to create the etched in effect on the button when it is
pressed down, like it does in Safari. I've tried using shadows and
offsetted paths to no avail. Any suggestion appreciated.


Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ 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
  • Follow-Ups:
    • Re: How to create "pressed" effect on custom rounded buttons (like Safari bookmark)
      • From: Ricky Sharp <email@hidden>
References: 
 >How to create "pressed" effect on custom rounded buttons (like Safari bookmark) (From: Eric <email@hidden>)

  • Prev by Date: Re: A word of caution...
  • Next by Date: Re: programmatically determining if the machine is intel or not
  • Previous by thread: How to create "pressed" effect on custom rounded buttons (like Safari bookmark)
  • Next by thread: Re: How to create "pressed" effect on custom rounded buttons (like Safari bookmark)
  • Index(es):
    • Date
    • Thread