Fixes to the text network.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4641 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Michael Silva 1999-07-24 22:24:14 +00:00
parent 679019f7b3
commit a7f52772bc
6 changed files with 879 additions and 257 deletions

View file

@ -1190,13 +1190,16 @@ currentCursorY=[self rectForCharacterIndex:NSMaxRange([self selectedRange])].ori
// Handling Events
//
-(void) mouseDown:(NSEvent *)theEvent
{ NSSelectionGranularity granularity= NSSelectByCharacter;
{
NSSelectionGranularity granularity= NSSelectByCharacter;
NSRange chosenRange,prevChosenRange,proposedRange;
NSPoint point,startPoint;
NSEvent *currentEvent;
unsigned startIndex;
BOOL didDragging=NO;
NSLog(@"mouseDown:");
if (!is_selectable) return; // If not selectable then don't recognize the mouse down
[[self window] makeFirstResponder:self];
@ -2058,6 +2061,8 @@ NSLog(@"opti hook 2");
redrawLineRange=[self lineRangeForRect:rect];
NSLog(@"should be drawing text here. No big deal.\n");
if([self drawsBackground]) // clear area under text
{ [[self backgroundColor] set]; NSRectFill(rect);
}