void AmControlChangeDataView::FrameResized(float new_width, float new_height) { inherited::FrameResized( new_width, new_height ); mPt2.y = Bounds().bottom - 1; mScale = (mPt2.y -1) / 127; AddAsObserver(); }
void SeqPhraseMatrixView::AttachedToWindow() { inherited::AttachedToWindow(); AddAsObserver(); SetViewColor(B_TRANSPARENT_COLOR); if (Parent() && mMeasureView) { BRect f = Parent()->Frame(); mMeasureView->SetLeftIndent(f.left); BRect b = Window()->Bounds(); mMeasureView->SetRightIndent(b.Width() - f.right); } }
void SeqPhraseMatrixView::FrameResized(float new_width, float new_height) { inherited::FrameResized(new_width, new_height); AddAsObserver(); if (mVsb) SetVsbSteps(); SetupScrollBars(true, true); if (Parent() && Window() && mMeasureView && Window()->Lock() ) { BRect f = Parent()->Frame(); float topW = furthest_right( Window() ); mMeasureView->SetRightIndent(topW - f.right); Window()->Unlock(); } }
void SeqPhraseMatrixView::ScrollTo(BPoint where) { inherited::ScrollTo(where); if (mMeasureView) mMeasureView->ScrollTo(where); AddAsObserver(); }
void AmControlChangeDataView::ScrollTo(BPoint where) { inherited::ScrollTo( where ); AddAsObserver(); }
void AmControlChangeDataView::AttachedToWindow() { inherited::AttachedToWindow(); AddAsObserver(); }