mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 02:20:37 +00:00
Numerous WIN32 and bug fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2380 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
433204b18a
commit
287c850658
17 changed files with 213 additions and 132 deletions
|
@ -76,14 +76,31 @@
|
|||
[self setScrollable:YES];
|
||||
[self setEditable:YES];
|
||||
[self setAlignment:NSLeftTextAlignment];
|
||||
|
||||
background_color = [NSColor whiteColor];
|
||||
text_color = [NSColor blackColor];
|
||||
cell_font = [NSFont systemFontOfSize:16];
|
||||
|
||||
[self setBackgroundColor: [NSColor whiteColor]];
|
||||
[self setTextColor: [NSColor blackColor]];
|
||||
[self setFont: [NSFont systemFontOfSize: 16]];
|
||||
draw_background = YES;
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[background_color release];
|
||||
[text_color release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (id)copyWithZone:(NSZone*)zone
|
||||
{
|
||||
NSTextFieldCell* c = [super copyWithZone:zone];
|
||||
|
||||
[c setBackgroundColor: background_color];
|
||||
[c setTextColor: text_color];
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
//
|
||||
// Modifying Graphic Attributes
|
||||
//
|
||||
|
@ -99,6 +116,8 @@
|
|||
|
||||
- (void)setBackgroundColor:(NSColor *)aColor
|
||||
{
|
||||
[aColor retain];
|
||||
[background_color release];
|
||||
background_color = aColor;
|
||||
}
|
||||
|
||||
|
@ -109,6 +128,8 @@
|
|||
|
||||
- (void)setTextColor:(NSColor *)aColor
|
||||
{
|
||||
[aColor retain];
|
||||
[text_color release];
|
||||
text_color = aColor;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue