Transparency Problems
Transparency Problems
- Subject: Transparency Problems
- From: Kyle Moffett <email@hidden>
- Date: Sun, 15 Sep 2002 00:06:19 -0400
I am stumped over this. It is probably something simple
that I missed, but I need another set of eyes to look over
it:
BTW, I need 10.1 compatability.
I would like a normal, titled, bordered window, with all
controls enabled, that has a small portion of it with the
windows below it showing through. This can be
achieved one way:
[wind setBackgroundColor:[NSColor clearColor]];
[wind setAlphaValue:0.9999999]; // If set to 1.0 this does not work
[wind setOpaque:NO];
Then root views that are transparent show clear through the window.
There is an optimizing technique so that if the window alpha is 1.0,
the translucent view is filled with its bg color, but as though the bg
alpha value were 1.0. However, if i set the window's alpha value to
0.9999999, then the window looks solid, and the view looks
transparent, but moving the window slows down tremendously, due
to the fact that the entire thing is very very slightly transparent.
I tried another method that drew a root view filled with clearColor, then
drew everything over that, but it was still not transparent.
Thanks,
Kyle Moffett
_______________________________________________
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.