scroll
bool scroll; // scrolling in virtual area enabled
if( vc->scroll ) {
vc->scroll = mode.flags & B_SCROLL;
SHOW_FLOW( 2, "scrolling %s", vc->scroll ? "enabled" : "disabled" );
BMessage scroll(kMsgScrollCreditsView);
fScrollRunner = new(std::nothrow) BMessageRunner(this, &scroll, 25000, -1);
BScrollView* scroll = new BScrollView("", fList, 0, false, true);
scroll->ScrollBar(B_VERTICAL)->PreferredSize().width - 2, -2)
.Add(scroll)
BScrollBar* scroll = fContentView->TextView()->ScrollBar(B_VERTICAL);
if (scroll == NULL || fRef == NULL)
float pos = scroll->Value();
scroll->SetValue(pos);
scroll(state, rect, -count, 0);
scroll(state, rect, count, 0);
scroll(state, rect, 0, count);
scroll(state, rect, count, 0);
scroll(state, rect, -count, 0);
scroll(state, rect, 1, 0);
scroll(state, rect, 0, -count);
scroll(state, rect, 0, count);
scroll(state, rect, 0, -1);
scroll(state, rect, -1, 0);
scroll(state, rect, 0, -count);
bool scroll = false;
BRect frame = _CalcFrame(screenLocation, &scroll);
if (!scroll) {
BPoint scroll(B_ORIGIN);
scroll.x = std::max(fPreviousBounds.Width() - Bounds().Width(),
scroll.y = std::max(fPreviousBounds.Height() - Bounds().Height(),
if (scroll != B_ORIGIN)
PoseView()->ScrollBy(scroll.x, scroll.y);
BScrollBar * scroll = ScrollBar(B_HORIZONTAL);
scroll->SetRange(0.0, x);
scroll->SetProportion((width - x) / width);
scroll->SetSteps(smallStep, bigStep);
scroll = ScrollBar(B_VERTICAL);
scroll->SetRange(0.0, y);
scroll->SetProportion((height - y) / height);
scroll->SetSteps(smallStep, bigStep);
BScrollBar *bar = panel->scroll->ScrollBar(B_VERTICAL);
panel->scroll->ScrollBar(B_VERTICAL)->SetRange(0,0);
BScrollBar *bar = panel->scroll->ScrollBar(B_VERTICAL);
panel->scroll->ScrollBar(B_VERTICAL)->SetRange(0,0);
scroll = scroll_view;
BScrollView *scroll;
BScrollBar * scroll;
scroll = ScrollBar (B_HORIZONTAL);
scroll->SetRange (0.0, x);
scroll->SetProportion ((width - x) / width);
scroll->SetSteps (smallStep, bigStep);
scroll = ScrollBar (B_VERTICAL);
scroll->SetRange (0.0, y);
scroll->SetProportion ((height - y) / height);
scroll->SetSteps (smallStep, bigStep);
BScrollView* scroll = new BScrollView("scroll", grid, B_FOLLOW_ALL_SIDES,
window->AddChild(scroll);
scroll->ResizeTo(bounds.Width(), bounds.Height());
BScrollView* scroll
window->AddChild(scroll);
scroll->ResizeTo(window->Bounds().Size());