TermView can also work as a child of a BScrollView

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34187 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2009-11-22 16:09:32 +00:00
parent 4ce4d86bc9
commit abc3e03007
2 changed files with 12 additions and 1 deletions

View File

@ -1722,6 +1722,15 @@ TermView::ScrollTo(BPoint where)
}
void
TermView::TargetedByScrollView(BScrollView *scrollView)
{
BView::TargetedByScrollView(scrollView);
SetScrollBar(scrollView->ScrollBar(B_VERTICAL));
}
BHandler*
TermView::ResolveSpecifier(BMessage* message, int32 index, BMessage* specifier,
int32 what, const char* property)

View File

@ -23,11 +23,12 @@
class BClipboard;
class BMessageRunner;
class BScrollBar;
class BScrollView;
class BString;
class BStringView;
class Shell;
class TermBuffer;
class ResizeWindow;
class Shell;
class TermView : public BView {
public:
@ -108,6 +109,7 @@ protected:
virtual void MessageReceived(BMessage* message);
virtual void ScrollTo(BPoint where);
virtual void TargetedByScrollView(BScrollView *scrollView);
virtual status_t GetSupportedSuites(BMessage* msg);
virtual BHandler* ResolveSpecifier(BMessage* msg, int32 index,