Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Transparency

Transparency
Thread Tools
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Jan 31, 2001, 10:33 AM
 
Is it, or, will it be possible in Mac OS X 1.0 to have patches of transparency for a window?

Right now you can use the unsupported alpha command to change a window's transparency, but will there be more control over which parts of the window are drawn in what alpha?
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
Dedicated MacNNer
Join Date: Jul 1999
Status: Offline
Reply With Quote
Feb 1, 2001, 04:21 PM
 
Originally posted by parallax:
Is it, or, will it be possible in Mac OS X 1.0 to have patches of transparency for a window?

Right now you can use the unsupported alpha command to change a window's transparency, but will there be more control over which parts of the window are drawn in what alpha?
The Music Player app in PB uses a pdf as a window mask. You can for example erase a chunk of it and poke holes in the apps interface. I imagine its possible to have portions of a window with varrying degrees of transparency. might need to uses a non standard view though.
     
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Feb 1, 2001, 06:49 PM
 
Ah, how does one create something like that music player panel, not square, but shadowed?

Is there a page someone can point me to?
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
Mac Enthusiast
Join Date: Feb 2000
Location: Storrs,Connecticut, USA
Status: Offline
Reply With Quote
Mar 6, 2001, 11:58 AM
 
Parallax, I found on the Omni mailing list how to draw windows which aren't totally opaque. It doesn't make much sense, but the whole Core Graphics headers don't make much sense either. You can see here: http://www.omnigroup.com/mailman/arc...er/004651.html
     
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Mar 6, 2001, 02:17 PM
 
Thanks much Dalgo!

Since then, I've been mainly overriding the style view with my own. And since Quartz rocks so much, there's no need for masks for click-throughs.

It seems a lot easier than what was on this Omni message.

(http://gilgalad.dyndns.org/TetrisSource.tar.gz)
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
Mac Enthusiast
Join Date: Feb 2000
Location: Storrs,Connecticut, USA
Status: Offline
Reply With Quote
Mar 7, 2001, 04:09 AM
 
What is the style view? If it's that easy then I think that I'll want to override it to make windows of different shapes too. I didn't see anything about style view in the headers, though.
     
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Mar 7, 2001, 06:20 AM
 
You define some of it in stylemask, I believe, but basically it's a view (like your content view) that'll be displayed under the content view (ribs, in most cases).

Check out: http://gilgalad.dyndns.org/TetrisSource.tar.gz

It'll show you what you need to do to get a new style view up and running.

The nice thing about this is that shadows work great with different shapes, and there's no need to supply masks!
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
Dedicated MacNNer
Join Date: Jul 1999
Status: Offline
Reply With Quote
Apr 12, 2001, 07:17 PM
 
wow-

everyone check out this sample code(if you haven't already):

http://developer.apple.com/samplecod...rentWindow.htm

yummy
     
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Apr 12, 2001, 07:47 PM
 
Must... get.. every other post in this thread...

>THANK YOU< havannas. This is what I've been looking for. My other thing was overly complex.

[This message has been edited by parallax (edited 04-12-2001).]
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:15 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2