Exemple #1
0
        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);
            }
        }
Exemple #2
0
        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);
            }
        }
Exemple #3
0
 private void tsbFullExtent_Click(object sender, EventArgs e)
 {
     MapNavigation.ZoomAll(this.m_activeMapCtrl.ActiveView);
 }
Exemple #4
0
 private void tsbNextView_Click(object sender, EventArgs e)
 {
     MapNavigation.Next(this.m_activeMapCtrl.ActiveView);
 }
Exemple #5
0
 private void tspPriorView_Click(object sender, EventArgs e)
 {
     MapNavigation.Prior(this.m_activeMapCtrl.ActiveView);
 }