* NSCell.m: changed implementation of trackMouse method so that it does

not hightlight the cell.  The new behavior is as described in the spec
		for NSControl, NSMatrix and NSCell.  According to the spec it is the
		responsibility of the control to highlight the cell prior to calling
		cell's track method.
	* NSMatrix.m: rewrote mousedown to more closely mimic the NS/OS behavior.
	* NSButton.m: modified to support new behavior of NSCell's track mode.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2865 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
far 1998-07-26 01:15:17 +00:00
parent c70c7321e0
commit 05fcf354f4
3 changed files with 217 additions and 247 deletions

View file

@ -314,6 +314,8 @@ id gnustep_gui_nsbutton_class = nil;
e = theEvent;
while (!done)
{
[cell highlight: YES withFrame: bounds inView: self]; // highlight cell
[self setNeedsDisplayInRect:bounds];
mouseUp = [cell trackMouse: e inRect: bounds
ofView:self untilMouseUp:YES];
e = [theApp currentEvent];