Confusion about transparent windows
Confusion about transparent windows
- Subject: Confusion about transparent windows
- From: Chris Backas <email@hidden>
- Date: Wed, 27 Aug 2003 16:35:26 -0700
Hello all
I'm developing a full screen application where I want to layer some windows, in the most basic case I have a full-screen-sized window on the bottom that has a few NSViews in it, and then I have a 'Content Window' on top.
The content window is added to the main window as a child, and ordered front to sit on top. This is all well and good. If I change the content window's alpha value I can see the main window below, which is fine too.
What I would like though, is for any region of the content window that doesn't have a View in it to be completely transparent, while the contained views would have a seperate transparency setting (though all the views can share the same).
Originally I thought I could achieve this by setting the content window's background color to NSColor's clearColor, but apparently the background painting goes OVER Aqua's stripes rather than replacing them like I expected so that my end result is that I see these stripes all over and it ruins the look.
Is there some way, even by subclassing if need be, that I can make it leave 'unclaimed' regions of the windows *completely* transparent?
Thanks
Chris Backas
_______________________________________________
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.