private void Figure_MouseDown(object sender, MouseEventArgs e) { if (MouseIsInControl & AltIsDown == false) { zoomRegion = new DrawZoomRegion(); zoomRegion.p0 = e.Location; } }
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; }
private void Plot2D_MouseDown(object sender, MouseEventArgs e) { if (MouseIsInControl) { if (!AltIsDown) { p0 = e.Location; zoomRegion = new DrawZoomRegion(); zoomRegion.p0 = p0; } } }
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; } }
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); } } }