model_server/gala/src/sash.cxx
/*Constructor takes in an initial screen placement rect, a dialog box which it
  appends itself to, a SashType (horizontal or vertical), and its owner view 
  (which is either the one below it, or to its right)*/
Constructor takes in an initial screen placement rect, a dialog box which it
appends itself to, a SashType (horizontal or vertical), and its owner view
(which is either the one below it, or to its right)
Constructor takes in an initial screen placement rect a dialog box which it appends itself to a SashType ( horizontal or vertical ) and its owner view ( which is either the one below it or to its right )
Sash::Sash (vrect *newRect,Pane* container, SashType newType, View
	    *newOwner) 
{    
  gInit (Sash::Sash);
  SetRect(newRect);
  container->AppendItem (this);
  myType = newType;
  myOwner = newOwner; 
  SetForeground(Viewer::GetSashForeground() );
  SetBackground(Viewer::GetSashBackground() );
  vresource res;
  if (myType==Horizontal) {
    getResource ("Cursors:HorzPaneResize", &res);
  } else {
     getResource ("Cursors:VertPaneResize", &res);
  }
  vcursor* cursor = new vcursor (res);
  cursor->SetHot(8,8);
  SetCursorOwned(cursor);
}
Sash :: Sash ( vrect * newRect , Pane * container , SashType newType , View * newOwner ) { gInit ( Sash :: Sash ) ; SetRect ( newRect ) ; container -> AppendItem ( this ) ; myType = newType ; myOwner = newOwner ; SetForeground ( Viewer :: GetSashForeground ( ) ) ; SetBackground ( Viewer :: GetSashBackground ( ) ) ; vresource res ; if ( myType == Horizontal ) { getResource ( " " , & res ) ; } else { getResource ( " " , & res ) ; } vcursor * cursor = new vcursor ( res ) ; cursor -> SetHot ( 8 , 8 ) ; SetCursorOwned ( cursor ) ; }
Constructor takes in an initial screen placement rect, a dialog box which it
appends itself to, a SashType (horizontal or vertical), and its owner view
(which is either the one below it, or to its right)
Constructor takes in an initial screen placement rect a dialog box which it appends itself to a SashType ( horizontal or vertical ) and its owner view ( which is either the one below it or to its right )