Exemple #1
0
        public override void OnMouseDown(int Button, int Shift, int X, int Y)
        {
            Common.MapPrintCommon.GraphicsContainClearSelection();
            IPoint point = new PointClass();

            //m_hookHelper.ActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint(X, Y);
            point = m_hookHelper.ActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint(X, Y);

            TextSetUp textSetUp = new TextSetUp();

            textSetUp.NewTextElement(point);
            if (textSetUp.ShowDialog() == DialogResult.OK)
            {
                Common.MapPrintCommon.g_axPageLayoutControl.CurrentTool = Common.MapPrintCommon.SetControlsSelectCommand();
            }
        }
        public override void OnMouseDown(int Button, int Shift, int X, int Y)
        {
            Common.MapPrintCommon.GraphicsContainClearSelection();
            IPoint point = new PointClass();
            //m_hookHelper.ActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint(X, Y);
            point = m_hookHelper.ActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint(X, Y);

            TextSetUp textSetUp = new TextSetUp();
            textSetUp.NewTextElement(point);
            if (textSetUp.ShowDialog() == DialogResult.OK)
            {
                Common.MapPrintCommon.g_axPageLayoutControl.CurrentTool = Common.MapPrintCommon.SetControlsSelectCommand();
            }
        }