Example #1
0
 private void Figure_MouseDown(object sender, MouseEventArgs e)
 {
     if (MouseIsInControl & AltIsDown == false)
     {
         zoomRegion    = new DrawZoomRegion();
         zoomRegion.p0 = e.Location;
     }
 }
Example #2
0
        private void Figure_MouseUp(object sender, MouseEventArgs e)
        {
            if (zoomRegion != null & AltIsDown == false)
            {
                CalRealZoomRect(
                    new Rectangle(zoomRegion.minX, zoomRegion.minY, zoomRegion.width, zoomRegion.height));
            }

            zoomRegion = null;
        }
Example #3
0
 private void Plot2D_MouseDown(object sender, MouseEventArgs e)
 {
     if (MouseIsInControl)
     {
         if (!AltIsDown)
         {
             p0            = e.Location;
             zoomRegion    = new DrawZoomRegion();
             zoomRegion.p0 = p0;
         }
     }
 }
Example #4
0
        private void Plot2D_MouseUp(object sender, MouseEventArgs e)
        {
            if (zoomRegion != null & AltIsDown == false)
            {
                if (tips != null)
                {
                    tips.Clear(); tips = null;
                }
                Invalidate();
                CalRealZoomRect(new Rectangle(zoomRegion.minX, zoomRegion.minY, zoomRegion.width, zoomRegion.height));

                zoomRegion = null;
            }
        }
Example #5
0
 private void Plot2D_MouseDown(object sender, MouseEventArgs e)
 {
     if (MouseIsInControl & AltIsDown == false)
     {
         zoomRegion    = new DrawZoomRegion();
         zoomRegion.p0 = e.Location;
     }
     else
     {
         if (MouseIsInControl)
         {
             //AddToolTip(e.X, e.Y);
         }
     }
 }