Fixed nstabview.app

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4556 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Michael Silva 1999-07-10 01:09:40 +00:00
parent ba6ec2a017
commit 2df56c0541
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,9 @@
1999-07-9 Michael Hanni <mhanni@sprintmail.com>
* Source/NSTabView.m: perfected the mouse event work. now clicking
in the tabs works wonderfully. Now just need to hook up code to
draw the selected tabs view in the tabview rect.
1999-07-9 Michael Hanni <mhanni@sprintmail.com>
* Headers/AppKit/NSTabViewItem.h: defined some non-spec methods.

View file

@ -309,8 +309,14 @@
int howMany = [tab_items count];
int i;
point = [self convertPoint:point fromView:nil];
for (i=0;i<howMany;i++) {
NSTabViewItem *anItem = [tab_items objectAtIndex:i];
NSRect tRect = [anItem _tabRect];
NSLog(@"point (%f, %f) and rect (%f, %f) (%f, %f)", point.x, point.y,
tRect.origin.x, tRect.origin.y, tRect.size.width, tRect.size.height);
if(NSPointInRect(point,[anItem _tabRect]))
return anItem;