model_server/gala/src/view.cxx
// ResizeChildrenVert - Verticle resizing of all children.
//    Remember, a vertical group has horizontal sashes.
Verticle resizing of all children.
Remember, a vertical group has horizontal sashes.
Verticle resizing of all children . Remember a vertical group has horizontal sashes .
void View::ResizeChildrenVert()
{
    View* lastChild;
    for (lastChild = ChildView; lastChild->RightView;
         lastChild = lastChild->RightView);
    vrect sashRect;
    int newY = 0;
    for (View* v = lastChild; v; v = v->LeftView) {
        v->ResizeView(0, newY);
        if (v->mySash) {    
            sashRect = *(v->mySash->GetRect());
            sashRect.SetX((v->myRect.x));
            sashRect.SetY((v->myRect.y + v->myRect.h));
            sashRect.SetWidth(v->myRect.w);
            v->mySash->SetRect(&sashRect);
        }
        if (v->LeftView) 
            newY = v->myRect.y + v->myRect.h + SASH_SIZE;
    }
}
void View :: ResizeChildrenVert ( ) { View * lastChild ; for ( lastChild = ChildView ; lastChild -> RightView ; lastChild = lastChild -> RightView ) ; vrect sashRect ; int newY = 0 ; for ( View * v = lastChild ; v ; v = v -> LeftView ) { v -> ResizeView ( 0 , newY ) ; if ( v -> mySash ) { sashRect = * ( v -> mySash -> GetRect ( ) ) ; sashRect . SetX ( ( v -> myRect . x ) ) ; sashRect . SetY ( ( v -> myRect . y + v -> myRect . h ) ) ; sashRect . SetWidth ( v -> myRect . w ) ; v -> mySash -> SetRect ( & sashRect ) ; } if ( v -> LeftView ) newY = v -> myRect . y + v -> myRect . h + SASH_SIZE ; } }
ResizeChildrenVert - Verticle resizing of all children.
ResizeChildrenVert - Verticle resizing of all children .
// Find the last child. // Loop back through all the children. // Resize the child. // Update the sash. // Get the next y.