Re: How to draw a Recessed Button Shadow
Re: How to draw a Recessed Button Shadow
- Subject: Re: How to draw a Recessed Button Shadow
- From: "Dalzhim Dalzhim" <email@hidden>
- Date: Mon, 27 Oct 2008 15:27:42 -0400
It's been a while since I haven't had a chance to work on this but I've
finally got back onto it and I still haven't found a solution to get the
bezel border to be drawn properly. Subclassing any of the public methods
doesn't work as the closest I can get to the result I want is by overriding
drawBezelWithFrame and then I can paint the background with the color or
gradient I wish, but I still lose the bezel border and I can't seem to
reproduce that one.
When subclassing NSButton and NSButtonCell to reproduce the same behavior
with a Recessed NSButton instead of a Recessed NSPopUpButton the result
remains the same. I can draw any background I wish but I cannot seem to
draw the bezel border.
regards
-Dalzhim
2008/10/21 Kyle Sluder
<email@hidden<email@hidden>
>
> On Tue, Oct 21, 2008 at 9:55 AM, Dalzhim Dalzhim
> <email@hidden> wrote:
> > I have already tried the methods you mention and they draw the gray
> opaque
> > background that I want to get rid of so that I can make the highlight a
> > different color, as well as drawing the arrow images.
>
> So subclass NSPopUpButton and override the implementation of those methods.
>
> --Kyle Sluder
>
_______________________________________________
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