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 > making a window transparent, but not the contents

making a window transparent, but not the contents
Thread Tools
stupidFish23
Forum Regular
Join Date: Jan 2002
Location: Hungary
Status: Offline
Reply With Quote
May 10, 2002, 09:25 AM
 
is this possible? like have a text appear on the desktop, but the window that contains it is invisible?
nothing is when everything is alright
[email protected] ICQ: 153647416
     
11011001
Mac Elite
Join Date: May 2001
Location: Up north
Status: Offline
Reply With Quote
May 11, 2002, 04:00 AM
 
If you got TinkerTool, try setting the terminal to completely transparent.

You can click through the window, the text is not transparent though, and you can still see the edges of the window and stuff.

But ya, you should be able to
     
stupidFish23  (op)
Forum Regular
Join Date: Jan 2002
Location: Hungary
Status: Offline
Reply With Quote
May 11, 2002, 04:17 AM
 
yeah, i know. but i was looking for a way to code this into my app..
nothing is when everything is alright
[email protected] ICQ: 153647416
     
ksuther
Forum Regular
Join Date: Feb 2002
Location: New York
Status: Offline
Reply With Quote
May 11, 2002, 07:16 AM
 
Hope this helps out some. I don't know if I'm doing it right, but it works, sorta.
http://homepage.mac.com/ksuther/Tran...tWindow.tar.gz

It does a bunch of subclassing of NSWindow, NSView, and NSTableView to paint clear over everything. I tried to comment it, but if you have any questions, I'll try to answer them.

[ 05-11-2002: Message edited by: ksuther ]
     
Smircle
Forum Regular
Join Date: Feb 2001
Location: Berlin, .de
Status: Offline
Reply With Quote
May 11, 2002, 08:59 AM
 
Originally posted by stupidFish23:
is this possible? like have a text appear on the desktop, but the window that contains it is invisible?
Just use
kOverlayWindowClass = 14L, /* transparent window which allows 'screen' drawing via CoreGraphics (Mac OS X only)*/
in your window creation call and you'll get a completely invisible window which you can draw on.
     
   
 
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
Top
Privacy Policy
All times are GMT -4. The time now is 10:37 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,