public override void OnMapControlMouseDown(IActiveView activeView, int button, int shift, int x, int y, double mapX, double mapY) { base.OnMapControlMouseDown(activeView, button, shift, x, y, mapX, mapY); if (activeView != null && button == 1) { MapNavigation.Pan(activeView); } }
private void mapCtrlRight_OnMouseDown(object sender, IMapControlEvents2_OnMouseDownEvent e) { if (e.button == 4) { esriControlsMousePointer tempPointer = mapCtrlRight.MousePointer; mapCtrlRight.MousePointer = esriControlsMousePointer.esriPointerPagePanning; MapNavigation.Pan(mapCtrlRight.ActiveView); mapCtrlRight.MousePointer = tempPointer; return; } if (this.m_mapTool != null) { this.m_mapTool.OnMapControlMouseDown(mapCtrlRight.ActiveView, e.button, e.shift, e.x, e.y, e.mapX, e.mapY); } }
private void tsbFullExtent_Click(object sender, EventArgs e) { MapNavigation.ZoomAll(this.m_activeMapCtrl.ActiveView); }
private void tsbNextView_Click(object sender, EventArgs e) { MapNavigation.Next(this.m_activeMapCtrl.ActiveView); }
private void tspPriorView_Click(object sender, EventArgs e) { MapNavigation.Prior(this.m_activeMapCtrl.ActiveView); }