mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 19:20:37 +00:00
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:
parent
fdb0188039
commit
acf7614115
6 changed files with 531 additions and 726 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue