This project is read-only.

MouseUpEvent not firing when CursorMode = ZoomIn

Feb 8, 2013 at 7:58 PM
Hi all,

As the title says, when cursor mode = cmZoomIn, the mouse up event of my AxMap no longer fires for me. (I'm assuming the built in zoom in code runs first, then it cancels the rest of the event?)

The main reason I want it is to draw a thicker box on the screen, but I need into the MouseUpEvent to finish the box and clear it out.

Any ideas on how to get back into it, or force my event to fire before the built in control's event fires?

Feb 15, 2013 at 8:53 PM
Hi Zithal,

I hope this response isn't too late to be useful. The following code should fire the MouseUp event for you.

Don Rahmlow
Readfield, ME US
namespace WindowsFormsApplication10 {
    public partial class Form1 : Form {
        public Form1() {
            axMap1.CursorMode = MapWinGIS.tkCursorMode.cmZoomIn;
            axMap1.SendMouseUp = true;
            axMap1.MouseUpEvent+=new AxMapWinGIS._DMapEvents_MouseUpEventHandler(axMap1_MouseUpEvent);

        private void axMap1_MouseUpEvent(object sender, AxMapWinGIS._DMapEvents_MouseUpEvent e) {
            //This event gets fired on a MouseUp