Esempio n. 1
0
 public GH_ObjectResponse RespondToMouseUp(GH_Canvas sender, GH_CanvasMouseEvent e)
 {
     if (_activeWidget != null)
     {
         return(_activeWidget.RespondToMouseUp(sender, e));
     }
     for (int i = 0; i < _menus.Count; i++)
     {
         GH_ObjectResponse val = _menus[i].RespondToMouseUp(sender, e);
         if ((int)val != 0)
         {
             return(val);
         }
     }
     return(0);
 }
Esempio n. 2
0
 public override GH_ObjectResponse RespondToMouseUp(GH_Canvas sender, GH_CanvasMouseEvent e)
 {
     if (_activeControl != null)
     {
         GH_ObjectResponse val = _activeControl.RespondToMouseUp(sender, e);
         if ((int)val == 2)
         {
             _activeControl = null;
             return(val);
         }
         if ((int)val != 0)
         {
             return(val);
         }
         _activeControl = null;
     }
     return(0);
 }