• 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: transparent window and transparent button problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: transparent window and transparent button problems


  • Subject: Re: transparent window and transparent button problems
  • From: David Borland <email@hidden>
  • Date: Mon, 28 Nov 2005 13:02:05 -0800

I had that problem when I was using the RoundTransparentWindow example from Apple.

My problem was that the rectangle being passed into the view was not always the whole view. Sometimes it was just the area under the buttons being passed in, but I was treating it as if it was my entire window view, so I'd draw a rounded rectangle in that rect, giving the effect you talk about.

I fixed mine for the time being by getting the frame of the view and drawing that instead of using the rect that was passed in. I plan on changing my code eventually so that it will draw the correct thing when a smaller rect is passed in, but I won't do that till I get the view to look exactly how I want.


David Borland Electrical Geodesics, Inc.

On Nov 24, 2005, at 9:10 AM, Olivier Destrebecq wrote:

I'm using RoundedFloatingPanel code from http://iratescotsman.com/ products/source/ and am running accross a problem.

The text looks weird, and the button that i created using custom transparent images are having a problem once they have been pressed, it seems like extra white is added to the them.

here is a link to screenshot
before buttons are pressed: http://otusweb.spymac.com/Picture2.png
once the buttons are pressed: http://otusweb.spymac.com/Picture1.png

Anyone know what i need to do to fix this, seems like i'm not setting something right

Thanks,
Olivier Destrebecq
http://otusweb.spymac.com/portfolio/


_______________________________________________ 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


_______________________________________________ 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: transparent window and transparent button problems
      • From: Uli Kusterer <email@hidden>
References: 
 >transparent window and transparent button problems (From: Olivier Destrebecq <email@hidden>)

  • Prev by Date: Re: Tree Data Structure in objc-C?
  • Next by Date: Re: adding Columns to a NSTableView with bindings?
  • Previous by thread: transparent window and transparent button problems
  • Next by thread: Re: transparent window and transparent button problems
  • Index(es):
    • Date
    • Thread