model_server/gala/src/sash.cxx
/*The ObserveDrag functions are called when the button is let up from a drag.
  The check to see if the initial window, and the drop window are the same
  insures that the drag will only be moved if the mouse remains in the window.
  Using DeleteLater allows any recursive references to it before deleting it*/
The ObserveDrag functions are called when the button is let up from a drag.
The check to see if the initial window, and the drop window are the same
insures that the drag will only be moved if the mouse remains in the window.
Using DeleteLater allows any recursive references to it before deleting it
The ObserveDrag functions are called when the button is let up from a drag . The check to see if the initial window and the drop window are the same insures that the drag will only be moved if the mouse remains in the window . Using DeleteLater allows any recursive references to it before deleting it
void SashDragVert::ObserveDrag(vwindow *origin, vwindow *to, vevent *event) 
{
    gInit (SashDragVert::ObserveDrag);
    if (to == origin) {
	item->SetY(event->GetY() - item->GetHeight()/2, gside_top);
	item->Draw();
    }
    DeleteLater(); 
    vdrag::ObserveDrag (origin, to, event);
}
void SashDragVert :: ObserveDrag ( vwindow * origin , vwindow * to , vevent * event ) { gInit ( SashDragVert :: ObserveDrag ) ; if ( to == origin ) { item -> SetY ( event -> GetY ( ) - item -> GetHeight ( ) / 2 , gside_top ) ; item -> Draw ( ) ; } DeleteLater ( ) ; vdrag :: ObserveDrag ( origin , to , event ) ; }
The ObserveDrag functions are called when the button is let up from a drag.
The ObserveDrag functions are called when the button is let up from a drag .