Exemplo n.º 1
0
 // We use the left mouse button to do exclusive capture of the mouse so we can drag and drag
 // to rotate the cube without ever leaving the control
 private void OnGraphicsControlHwndLButtonDown(object sender, MouseEventArgs e)
 {
     _output.AppendLine("Mouse left button down");
     _previousPosition = e.GetPosition(this);
     GraphicsControl.CaptureMouse();
     GraphicsControl.Focus();
 }
Exemplo n.º 2
0
 // We use the left mouse button to do exclusive capture of the mouse so we can drag and drag
 // to rotate the cube without ever leaving the control
 private void OnGraphicsControlHwndLButtonDown(object sender, MouseEventArgs e)
 {
     _previousPosition = e.GetPosition(this);
     GraphicsControl.CaptureMouse();
     GraphicsControl.Focus();
     this.Cursor = Cursors.None;
     _lockCursor = true;
 }
Exemplo n.º 3
0
 // We use the left mouse button to do exclusive capture of the mouse so we can drag and drag
 // to rotate the cube without ever leaving the control
 private void OnGraphicsControlHwndLButtonDown(object sender, MouseEventArgs e)
 {
     output.AppendLine("Mouse left button down");
     GraphicsControl.CaptureMouse();
     GraphicsControl.Focus();
 }
Exemplo n.º 4
0
        // We use the left mouse button to do exclusive capture of the mouse so we can drag and drag
        // to rotate the cube without ever leaving the control

        private void OnGraphicsControlHwndLButtonDown(object sender, MouseEventArgs e)
        {
            _previousPosition = e.GetPosition(this);
            GraphicsControl.CaptureMouse();
            GraphicsControl.Focus();
        }
Exemplo n.º 5
0
 private void OnGraphicsControlHwndLButtonDown(object sender, MouseEventArgs e)
 {
     //GraphicsControl.CaptureMouse();
     GraphicsControl.Focus();
 }
 private void GraphicsControl_OnMouseRightButtonDown(object sender, MouseButtonEventArgs e)
 => GraphicsControl.Focus();