NSText works!

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4457 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Michael Silva 1999-06-22 23:37:24 +00:00
parent fdb0188039
commit acf7614115
6 changed files with 531 additions and 726 deletions

View file

@ -451,16 +451,21 @@ static Class imageClass;
(int)bRect.size.width,
(int)bRect.size.height);
bRect.origin.x -= 2;
bRect.size.width += 2;
[textObject setDelegate: anObject];
[textObject setFrame: bRect];
[[NSColor redColor] set];
NSRectFill(aRect);
// NSEraseRect(aRect);
NSEraseRect(aRect);
[textObject setText: [self stringValue]];
[[[controlView window] contentView] addSubview: textObject];
if ([theEvent type] == NSLeftMouseDown)
[textObject mouseDown:theEvent];
[textObject display];
[controlView unlockFocus];
}