예제 #1
0
 private void axGlobeControl1_OnMouseDown(object sender, ESRI.ArcGIS.Controls.IGlobeControlEvents_OnMouseDownEvent e)
 {
     //Popup menu
     if (e.button == 2)
     {
         m_ToolbarMenu2.PopupMenu(e.x, e.y, axGlobeControl1.hWnd);
     }
 }
        private void axGlobeControl1_OnMouseDown(object sender, ESRI.ArcGIS.Controls.IGlobeControlEvents_OnMouseDownEvent e)
        {
            //Mouse down should initiate a zoom only if the Zoom check box is checked
            if (m_bZooming == false)
            {
                return;
            }

            if (e.button == 1)
            {
                m_bMouseDown  = true;
                m_pMousePos.X = e.x;
                m_pMousePos.Y = e.y;
            }
        }