Re: transparent views and window shadow interference
Re: transparent views and window shadow interference
- Subject: Re: transparent views and window shadow interference
- From: Daryn <email@hidden>
- Date: Tue, 26 Nov 2002 19:54:28 -0600
On Tuesday, November 26, 2002, at 01:20 PM, Andreas Mayer wrote:
whereas I would like certain text views in the window to be
transparent -- sans the window shadowing the text in the views.
Hm. AFAIK the window shadow is only calculated when the window is
created or resized. You may try to create the window with empty
transparent views and fill in the text later.
True, but the shadow is also invalidated & redrawn when the window
ordering changes. The text view is fine until switching apps for
instance. Once not the front-most, the shadowing occurs and it doesn't
go away when it become frontmost.
With experimentation, I achieved what I want by setting the window's
alpha to .999999 and leave it opaque. It does what I want but it just
feels really really wrong. Further searches on mamasam turned up that
someone else was lamenting this implementation, but noone responded.
Daryn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.