Setting translucency of individual windows?
I could swear I've seen this, and thought it was an Unsanity haxie, but can't seem to find mention of it on their site...
edit: Duh. Read the freakin' notes for WindowShade, Kick... *sigh*
I'm looking for some way to control the transparency of any window of any app that I select.
Any pointers would be appreciated.
edit: Okay, now that it's public that I'm a dork, can anyone provide a quick clue as to how about doing this programmatically? Doing a bit of UI research, and am *this* close to selling the lead researcher on moving to MacOS X for it, and this is the last piece I need to convince him.
[ 10-09-2002: Message edited by: Kickaha ]</p>
edit: Duh. Read the freakin' notes for WindowShade, Kick... *sigh*
I'm looking for some way to control the transparency of any window of any app that I select.
Any pointers would be appreciated.
edit: Okay, now that it's public that I'm a dork, can anyone provide a quick clue as to how about doing this programmatically? Doing a bit of UI research, and am *this* close to selling the lead researcher on moving to MacOS X for it, and this is the last piece I need to convince him.
[ 10-09-2002: Message edited by: Kickaha ]</p>
Comments
<strong>Okay, now that it's public that I'm a dork, can anyone provide a quick clue as to how about doing this programmatically? Doing a bit of UI research, and am *this* close to selling the lead researcher on moving to MacOS X for it, and this is the last piece I need to convince him.</strong><hr></blockquote>
Email the guy who wrote Windowshade and ask.
Figured out how to do it for my own app's windows, (couldn't be easier - one line of code), and it looks like we won't need to do it for other apps' windows. Sticking our fingers in the window ordering might be useful though... hmmm.
<a href="http://developer.apple.com/samplecode/Sample_Code/Cocoa/RoundTransparentWindow.htm" target="_blank">http://developer.apple.com/samplecode/Sample_Code/Cocoa/RoundTransparentWindow.htm</a>
In Interface Builder there is an outlet of the Controller called itsWindow which is connected to a window. The code that controls the transparency is:
[itsWindow setAlphaValue:[sender floatValue]];
where sender is a slider on the window that the user moves to adjust the alpha as the mini-app is running.
To set the transparency of windows in an arbitrary application you have to talk to the window manager-it's a little bit trickier.
[ 10-19-2002: Message edited by: Rick1138 ]</p>
The Window Manager link is indeed the slightly more tricky part that I'm currently puzzling through.