Quantcast
Viewing all articles
Browse latest Browse all 2341

New Post: problem with ShowDialog()

Again, another informations.
I tried to do a little project to reproduce my problem.

CLASSE WITH THE FORM AXMAP :
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace test
{
    public partial class Form1 : Form
    {
        StateDrawPlatform test;
        public Form1()
        {
            InitializeComponent();
            axMap1.SendMouseDown = true;
            test = new StateDrawPlatform(this.axMap1);
        }

        private void AxMap_MouseDownEvent(object sender, AxMapWinGIS._DMapEvents_MouseDownEvent e)
        {
            bool endState = false;
            if (e.button == 1)
            {
                MessageBox.Show("test");
                //test.MouseLeftDown(e.x, e.y);
            }
        }
    }
}
CLASSE STATEDRAWPOINT :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MapWinGIS;
using System.Windows.Forms;

namespace test
{
    public class StateDrawPlatform
    {
        private AxMapWinGIS.AxMap _axMap;

        public StateDrawPlatform(AxMapWinGIS.AxMap newAxMap)
        {
            newAxMap.DisableWaitCursor = true;
            newAxMap.CursorMode = tkCursorMode.cmPan;
            newAxMap.MapCursor = tkCursor.crsrCross;
            newAxMap.Focus();
        }

        public void MouseLeftDown(int x, int y)
        {
            MessageBox.Show("test");
        }
    }
}
When I do that, I have one of the same problem than my application : the cursor in the window bar of the form is the same than the map.

Viewing all articles
Browse latest Browse all 2341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>