Пример #1
0
 private void axPageLayoutControl_OnMouseMove(object sender, IPageLayoutControlEvents_OnMouseMoveEvent e)
 {
     //this.lblCurrentLocation.Text = string.Format("{0},{1},{2}", e.pageX.ToString("#######.###"), e.pageY.ToString("#######.###"), this.axPageLayoutControl.Page.Units.ToString().Substring(4));
     this.lblCurrentLocation.Text = string.Format("{0}  {1}  {2}", e.pageX.ToString("#######.###"), e.pageY.ToString("#######.###"), this.axPageLayoutControl.Page.Units.ToString().Substring(4));
 }
 /// <summary>
 /// PageLayoutControl MouseMove event handler
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void axPageLayoutControl1_OnMouseMove(object sender, IPageLayoutControlEvents_OnMouseMoveEvent e)
 {
   statusBarXYUnits.Text = string.Format("{0} {1} {2}", e.pageX.ToString("###.##"), e.pageY.ToString("###.##"), axPageLayoutControl1.Page.Units.ToString().Substring(4));
 }
Пример #3
0
 private void axPageLayoutControl_OnMouseMove(object sender, IPageLayoutControlEvents_OnMouseMoveEvent e)
 {
     if (_App.CurrentTool != null)
     {
         _Tool = _ToolCol[_App.CurrentTool];
         _Tool.OnMouseMove(e.button, e.shift, (int)e.pageX, (int)e.pageY);
     }
 }
Пример #4
0
 private void axPageLayoutControl_OnMouseMove(object sender, IPageLayoutControlEvents_OnMouseMoveEvent e)
 {
     try
     {
         if (_App.CurrentTool != null)
         {
             _Tool = _ToolCol[_App.CurrentTool];
             _Tool.OnMouseMove(e.button, e.shift, (int)e.pageX, (int)e.pageY);
         }
     }
     catch (System.Exception ex)
     {
         return;
     }
 }
Пример #5
0
 private void axPageLayoutControl1_OnMouseMove(object sender, IPageLayoutControlEvents_OnMouseMoveEvent e)
 {
     labelControl1.Text = "当前坐标:X=" + e.pageX.ToString() + ",Y=" + e.pageY.ToString() + ",";
 }
Пример #6
0
        private void axPageLayoutControl1_OnMouseMove(object sender, IPageLayoutControlEvents_OnMouseMoveEvent e)
        {
            if (m_pageLayoutControl.MousePointer == esriControlsMousePointer.esriPointerSize && this.axPageLayoutControl1.CurrentTool == null)
            {
                m_designPageLayout.fMoveElement(e.pageX, e.pageY); //�ƶ�Ԫ��
            }
            if (m_pageLayoutControl.MousePointer == esriControlsMousePointer.esriPointerSizeNESW ||
                m_pageLayoutControl.MousePointer == esriControlsMousePointer.esriPointerSizeNS ||
                m_pageLayoutControl.MousePointer == esriControlsMousePointer.esriPointerSizeNWSE ||
                m_pageLayoutControl.MousePointer == esriControlsMousePointer.esriPointerSizeWE)     //resizeԪ��
            {
                IPoint m_point = m_pageLayoutControl.ActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint(e.x, e.y);

                if (m_resizeEnvelopeFeedback != null)
                {
                    m_resizeEnvelopeFeedback.MoveTo(m_point); //�ƶ��յ�
                }
            }
        }
Пример #7
0
        private void axPageLayoutControl1_OnMouseMove(object sender, IPageLayoutControlEvents_OnMouseMoveEvent e)
        {
            //  m_designPageLayout = new DesignPageLayout(m_mapControl, m_pageLayoutControl);

            if (m_pageLayoutControl.MousePointer == esriControlsMousePointer.esriPointerSize)
            {
                m_designPageLayout.fMoveElement(e.pageX, e.pageY); //移动元素
            }
            if (m_pageLayoutControl.MousePointer == esriControlsMousePointer.esriPointerSizeNESW ||
                m_pageLayoutControl.MousePointer == esriControlsMousePointer.esriPointerSizeNS ||
                m_pageLayoutControl.MousePointer == esriControlsMousePointer.esriPointerSizeNWSE ||
                m_pageLayoutControl.MousePointer == esriControlsMousePointer.esriPointerSizeWE)     //resize元素
            {
                IPoint m_point = m_pageLayoutControl.ActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint(e.x, e.y);

                if (m_resizeEnvelopeFeedback != null)
                {
                    m_resizeEnvelopeFeedback.MoveTo(m_point); //移动终点
                }
            }
        }