Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to draw a Recessed Button Shadow



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<kyle.sluder%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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >How to draw a Recessed Button Shadow (From: "Dalzhim Dalzhim" <email@hidden>)
 >Re: How to draw a Recessed Button Shadow (From: Rob Keniger <email@hidden>)
 >Re: How to draw a Recessed Button Shadow (From: "Dalzhim Dalzhim" <email@hidden>)
 >Re: How to draw a Recessed Button Shadow (From: "Kyle Sluder" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.