Re: NSWindow with individual background
Re: NSWindow with individual background
- Subject: Re: NSWindow with individual background
- From: Reimar Metzen <email@hidden>
- Date: Tue, 20 Jan 2004 15:27:09 +0100
Hi,
good idea - i try to build my own title bar.
thx
Reimar
Am 20.01.2004 um 15:08 schrieb Vincent Pottier:
>
I'm not sure, but i think changing the title bar background isn't
>
possible for a particular window, the better way is to remove the
>
title bar and create one by your own via an image and button (close,
>
resize and miniaturezed) foreground.
>
It migth look something like that (in the window custom class):
>
//Mask the window title bar
>
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned
>
int)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
>
{
>
self = [super initWithContentRect:contentRect
>
styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered
>
defer:NO];
>
[self setBackgroundColor:[NSColor clearColor]];
>
[self setOpaque:NO]; //only if you need
>
return self;
>
}
>
Then you migth have to implement methodes to move the window when
>
dragging but this is another history :,)
>
Vince
>
>
Le 20 janv. 04, ` 14:39, Reimar Metzen a icrit :
>
>
> Hi,
>
>
>
> my english isnt perfect too ;).
>
>
>
> I tried to set an background image (with a large NSImageView in the
>
> window) but then the title bar has not the background image i want -
>
> i want it like the brushed metal windows (but not with the brushed
>
> metal texture in the back - i want a dark metal texture in the back
>
> [including the title bar]).
>
>
>
> thx
>
> Reimar
>
>
>
> Am 20.01.2004 um 14:30 schrieb Vincent Pottier:
>
>
>
>> Well if you just want to change the background, the better way, is
>
>> to set an image background and put you interface foreground.
>
>> The rounded window sample describe a way to remove the window
>
>> background and delete the window border, if i've understand you
>
>> don't want that.
>
>> But as you see my english isn't perfect so...
>
>> Hope that help
>
>> Vincent
>
>>
>
>> Le 20 janv. 04, ` 14:11, Reimar Metzen a icrit :
>
>>
>
>>> sorry, but i cant find the rounded Window example
>
>>>
>
>>> thx
>
>>> Reimar
>
>>>
>
>>> Am 20.01.2004 um 14:02 schrieb Stiphane Sudre:
>
>>>
>
>>>> The Oracle.
>
>>>>
>
>>>> Or the Rounded Window sample code on the ADC Web site.
>
>>>>
>
>>>> Le Jan 20, 2004, ` 1:47 PM, Reimar Metzen a icrit :
>
>>>>
>
>>>>> Hi,
>
>>>>>
>
>>>>> who knows how i can get a window with a individual background
>
>>>>> image (like the dark metal in GarageBand).
>
>>>>>
>
>>>>> thx
>
>>>>> Reimar
>
>>>>> _______________________________________________
>
>>>>> 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.
>
>>> _______________________________________________
>
>>> 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.
_______________________________________________
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.