model_server/gala/src/view.cxx
// SetTop - Resizes the view to have the top at the given location.
//    If the new top is beyond the old bottom, 
//        This view's size is reduced to zero.
//        If appropriate, the Right neighbor is adjusted.
Resizes the view to have the top at the given location.
If the new top is beyond the old bottom,
This view's size is reduced to zero.
If appropriate, the Right neighbor is adjusted.
Resizes the view to have the top at the given location . If the new top is beyond the old bottom This view ' s size is reduced to zero . If appropriate the Right neighbor is adjusted .
void View::SetTop (const int newTop)
{
    if (newTop < myRect.y) {
        if (ParentView &&
            (ParentView->view_type == VerticalGroupView) &&
            RightView && RightView->GetSash() ) {
            RightView->GetSash()->SetY(newTop - SASH_SIZE +
                                       ParentView->GetAbsoluteY(), gside_top);
        }
        MoveView(myRect.x, newTop, myRect.w, 0);
    } else {
        int newHeight = newTop - myRect.y;
        MoveView(myRect.x, myRect.y, myRect.w, newHeight);
    }
}
void View :: SetTop ( const int newTop ) { if ( newTop < myRect . y ) { if ( ParentView && ( ParentView -> view_type == VerticalGroupView ) && RightView && RightView -> GetSash ( ) ) { RightView -> GetSash ( ) -> SetY ( newTop - SASH_SIZE + ParentView -> GetAbsoluteY ( ) , gside_top ) ; } MoveView ( myRect . x , newTop , myRect . w , 0 ) ; } else { int newHeight = newTop - myRect . y ; MoveView ( myRect . x , myRect . y , myRect . w , newHeight ) ; } }
SetTop - Resizes the view to have the top at the given location.
SetTop - Resizes the view to have the top at the given location .
// If the new top is below the old bottom, ... // ... Set height to Zero, and See if right neighbor needs to be adjusted. // If this is a Vertical Group and ... //  ... the right neighbor has a sash, move it too. // Move to the new location with a zero height. // Else, move the view.