model_server/gala/src/view.cxx
// ResizeChildrenHorz - Horizontal resizing of all children.
//    Remember, a horizontal group has vertical sashes.
Horizontal resizing of all children.
Remember, a horizontal group has vertical sashes.
Horizontal resizing of all children . Remember a horizontal group has vertical sashes .
void View::ResizeChildrenHorz()
{
    int newX = 0;
    for (View* v = ChildView; v; v = v->RightView) {
        v->ResizeView(newX, 0);
        if (v->mySash) {
            vrect sashRect = *(v->mySash->GetRect());
            sashRect.SetX(v->myRect.x - SASH_SIZE);
            sashRect.SetY(v->myRect.y);
            sashRect.SetHeight(v->myRect.h);
            v->mySash->SetRect(&sashRect);
        }
        if (v->RightView)    
            newX = v->myRect.x + v->myRect.w + SASH_SIZE;
    }
}
void View :: ResizeChildrenHorz ( ) { int newX = 0 ; for ( View * v = ChildView ; v ; v = v -> RightView ) { v -> ResizeView ( newX , 0 ) ; if ( v -> mySash ) { vrect sashRect = * ( v -> mySash -> GetRect ( ) ) ; sashRect . SetX ( v -> myRect . x - SASH_SIZE ) ; sashRect . SetY ( v -> myRect . y ) ; sashRect . SetHeight ( v -> myRect . h ) ; v -> mySash -> SetRect ( & sashRect ) ; } if ( v -> RightView ) newX = v -> myRect . x + v -> myRect . w + SASH_SIZE ; } }
ResizeChildrenHorz - Horizontal resizing of all children.
ResizeChildrenHorz - Horizontal resizing of all children .
// Loop through all the children. // Resize the child. // Adjust the sash rectangle. // Get next x.