Re: transparent windows
Re: transparent windows
- Subject: Re: transparent windows
- From: Yann Bizeul <email@hidden>
- Date: Mon, 27 Sep 2004 15:16:55 +0200
Juste create a subclass of NSWindow, and override initialization like
this :
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned
int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag
{
self = [ super initWithContentRect:contentRect
styleMask:NSBorderlessWindowMask backing:backingType defer:NO ];
[ self setBackgroundColor: [ NSColor clearColor]];
return self;
}
--
Yann Bizeul - yann at tynsoe.org
Cocoa Developer, visit my projects at :
http://projects.tynsoe.org/
Le 23 sept. 04, à 15:07, gojellybelly a écrit :
In a program named Taco html edit, they have an option to make the
windows content window transparent instead of the entire title bar and
buttons menu, can anyone share this bit of code to preform this ?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden