Exemplo n.º 1
0
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();
}
Exemplo n.º 2
0
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);
    }
}
Exemplo n.º 3
0
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();
    }
}
Exemplo n.º 4
0
void SeqPhraseMatrixView::ScrollTo(BPoint where)
{
    inherited::ScrollTo(where);
    if (mMeasureView) mMeasureView->ScrollTo(where);
    AddAsObserver();
}
Exemplo n.º 5
0
void AmControlChangeDataView::ScrollTo(BPoint where)
{
	inherited::ScrollTo( where );
	AddAsObserver();
}
Exemplo n.º 6
0
void AmControlChangeDataView::AttachedToWindow()
{
	inherited::AttachedToWindow();
	AddAsObserver();
}