Re: NSBox Colour
Re: NSBox Colour
- Subject: Re: NSBox Colour
- From: Oliver Cameron <email@hidden>
- Date: Sat, 6 Dec 2003 09:24:25 +0000
Hi Jens,
Thanks a lot for that code, it does exactly what I want. Now I need to
figure out the RGB value :-)
Thanks,
Oliver
On 5 Dec 2003, at 23:58, Jens Bauer wrote:
Hi Oliver,
Here's a subclass I wrote for something like that, it's probably not
exactly what you want, but... modify it to your needs. You may need to
draw the title and frame yourself...
/* GroupView.h */
#include "Debugging.h"
#import <Cocoa/Cocoa.h>
@interface GroupView : NSBox
{
}
@end
/* GroupView.m */
#import "GroupView.h"
@implementation GroupView
- (void)drawRect:(NSRect)rect
{
[[NSColor colorWithCalibratedRed:1.0 green:0.0 blue:0.0 alpha:0.1]
set];
NSRectFillUsingOperation(rect, NSCompositeSourceOver);
}
@end
On Saturday, Dec 6, 2003, at 00:38 Europe/Copenhagen, Oliver Cameron
wrote:
I would like to change the colour of the default line NSBox, is this
possible without creating a complete replica myself?
Love,
Jens
_______________________________________________
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.