Re: NSBox Colour
Re: NSBox Colour
- Subject: Re: NSBox Colour
- From: Jens Bauer <email@hidden>
- Date: Sat, 6 Dec 2003 00:58:36 +0100
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.
References: | |
| >NSBox Colour (From: Oliver Cameron <email@hidden>) |