Пример #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);
            }
        }
Пример #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);
            }
        }