Transparent Panel
Transparent Panel
- Subject: Transparent Panel
- From: John Pannell <email@hidden>
- Date: Mon, 12 Aug 2002 13:51:16 -0600
Hi all-
I have been trying to make a start-up panel much like photoshop 7's,
where a portion of the window "shows through" to whatever is below the
panel. My attempt is going along the lines of creating a window
programmatically and giving it a view (which has an image that is part
opaque and part transparent). I use this to create the window:
NSWindow *testPanel = [[NSWindow alloc] initWithContentRect:myRect
styleMask:NSBorderlessWindowMask backing:NSBackingStoreRetained
defer:NO];
[testPanel setBackgroundColor:[NSColor clearColor]];
[testPanel makeKeyAndOrderFront:nil];
The result of this is the creation of a window that has no title bars or
anything (which I was after) but unfortunately the window region doesn't
show whatever is under it - it is simply a black rect.
Any suggestions are much appreciated!
John P.
_______________________________________________
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.