• 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
How to draw a Recessed Button Shadow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to draw a Recessed Button Shadow


  • Subject: How to draw a Recessed Button Shadow
  • From: "Dalzhim Dalzhim" <email@hidden>
  • Date: Mon, 20 Oct 2008 14:34:03 -0400

Hello,

I am currently trying to subclass NSPopUpButton while keeping compatibility
with Mac OS 10.4 in order to add the possibility of choosing the color of
the highlight when the mouse is placed over the button, including gradient
fills.  The problem is that neither NSPopUpButton or NSPopUpButtonCell seem
to provide public methods to draw the border of the button or the image with
the arrows.  Only the title of the button can be drawed using a public
method while handling the rest of the drawing in a subclass.

Because of this, I have tried reproducing the border myself and I cannot
seem to find a way to do it properly.  I have tried many solutions by
stroking different colors with various types of shadows and I still am not
satisfied with the result.

Does any of you have an idea of how to easily reproduce this kind of control
with the added functionality I am looking for?  Am I on the right path?


regards



-Dalzhim
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to draw a Recessed Button Shadow
      • From: Rob Keniger <email@hidden>
  • Prev by Date: Re: Screen not redrawing - SOLVED
  • Next by Date: Return and Enter don't "behave" in Text Field (Newb)
  • Previous by thread: Re: Screen not redrawing - SOLVED
  • Next by thread: Re: How to draw a Recessed Button Shadow
  • Index(es):
    • Date
    • Thread