Re: transparent window and transparent button problems
Re: transparent window and transparent button problems
- Subject: Re: transparent window and transparent button problems
- From: Uli Kusterer <email@hidden>
- Date: Mon, 28 Nov 2005 22:17:19 +0100
Am 28.11.2005 um 22:02 schrieb David Borland:
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.
If it surprised you that this rect isn't the same as the frame/
bounds rects, you may want to re-read the following page:
http://developer.apple.com/documentation/Cocoa/Conceptual/
CocoaPerformance/Articles/CustomViews.html
In particular the section labeled "draw minimally", and its first and
third paragraphs.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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