BScrollBar now sets the internal BView scrollbar pointers

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12759 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm 2005-05-21 20:39:03 +00:00
parent eab4dcf7de
commit 423a41b8cd
1 changed files with 5 additions and 3 deletions

View File

@ -32,7 +32,7 @@
#include <string.h>
#include <OS.h>
#include <Window.h>
#include <ScrollBar.h>
#include "ScrollBar.h"
//#define TEST_MODE
@ -380,8 +380,10 @@ void BScrollBar::SetTarget(BView *target)
fTargetName=new char[strlen(target->Name())+1];
strcpy(fTargetName,target->Name());
// TODO: theoretically, we should also set the target BView's scrollbar
// pointer here
if(Orientation() == B_VERTICAL)
fTarget->fVerScroller=this;
else
fTarget->fHorScroller=this;
}
else
fTargetName=NULL;