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:
parent
4ce4d86bc9
commit
abc3e03007
@ -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)
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user