mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:00:38 +00:00
* 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:
parent
c70c7321e0
commit
05fcf354f4
3 changed files with 217 additions and 247 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue