Exemplo n.º 1
0
 public override bool Mouse_ButtonDown(object sender, MouseButtonEventArgs e)
 {
     if (e.X > X && e.X < X + W && e.Y > Y && e.Y < Y + topWidth)
     {
         mouseDownOnTop = true;
         lastX = e.X;
         lastY = e.Y;
         return true;
     } else if (e.X >= X + W - 2 && e.X <= X + W - 2 && e.Y >= Y + H - 2 && e.Y <= Y + H + 2) {
         mouseDownOnCorner = true;
         lastX = e.X;
         lastY = e.Y;
         return true;
     } else if (e.X >= X && e.X <= X + W && e.Y >= Y + H - 2 && e.Y <= Y + H + 2)
     {
         mouseDownOnBottom = true;
         lastX = e.X;
         lastY = e.Y;
         return true;
     } else if (e.Y >= Y && e.Y <= Y + H && e.X >= X + W - 2 && e.X <= X + W + 2)
     {
         mouseDownOnRight = true;
         lastX = e.X;
         lastY = e.Y;
         return true;
     } else
     {
         return false;
     }
 }
Exemplo n.º 2
0
 public bool Mouse_ButtonDown(object sender, MouseButtonEventArgs e)
 {
     focusedControl = baseControl.FindControlAtPoint(e.X, e.Y);
     if (focusedControl == null)
     {
         return false;
     }
     else
     {
         return focusedControl.Mouse_ButtonDown(sender, e);
     }
 }
Exemplo n.º 3
0
 public override bool Mouse_ButtonUp(object sender, MouseButtonEventArgs e)
 {
     return true;
 }
Exemplo n.º 4
0
 public bool Mouse_ButtonUp(object sender, MouseButtonEventArgs e)
 {
     if (focusedControl == null)
     {
         return false;
     }
     else
     {
         return focusedControl.Mouse_ButtonUp(sender, e);
     }
 }
Exemplo n.º 5
0
 public override bool Mouse_ButtonDown(object sender, MouseButtonEventArgs e)
 {
     return false;
 }
Exemplo n.º 6
0
 public override bool Mouse_ButtonUp(object sender, MouseButtonEventArgs e)
 {
     mouseDownOnTop = false;
     mouseDownOnRight = false;
     mouseDownOnBottom = false;
     mouseDownOnCorner = false;
     return true;
 }
Exemplo n.º 7
0
 public bool Mouse_ButtonUp(object sender, MouseButtonEventArgs e)
 {
     return false;
 }
Exemplo n.º 8
0
 public abstract bool Mouse_ButtonUp(object sender, MouseButtonEventArgs e);