model_server/gala/src/view.cxx
// AttachView - Attaches the Pane to the given view.
//    It will save the view as myOwner.
//    If this Pane is a Sub-Win, it will be attached to this window.
//    It will set up the colors.
Attaches the Pane to the given view.
It will save the view as myOwner.
If this Pane is a Sub-Win, it will be attached to this window.
It will set up the colors.
Attaches the Pane to the given view . It will save the view as myOwner . If this Pane is a Sub - Win it will be attached to this window . It will set up the colors .
void Pane::AttachView(View* newOwner) 
{
    myOwner = newOwner;
    if (window_) {
        myOwner->myViewer->GetDialog()->AppendItem(window_);
    }
#ifdef OWNCOLOR
    vcolor* fg = GetForeground();
    vcolor* bg = GetBackground();
    SetForeground (fg ? fg : Viewer::GetPaneForeground());
    SetBackground (bg ? bg : Viewer::GetPaneBackground());
#endif
    SetBorder(0);
}
void Pane :: AttachView ( View * newOwner ) { myOwner = newOwner ; if ( window_ ) { myOwner -> myViewer -> GetDialog ( ) -> AppendItem ( window_ ) ; } #ifdef OWNCOLOR vcolor * fg = GetForeground ( ) ; vcolor * bg = GetBackground ( ) ; SetForeground ( fg ? fg : Viewer :: GetPaneForeground ( ) ) ; SetBackground ( bg ? bg : Viewer :: GetPaneBackground ( ) ) ; #endif SetBorder ( 0 ) ; }
AttachView - Attaches the Pane to the given view.
AttachView - Attaches the Pane to the given view .