-2

Does anyone know how to wire up mouse events on a map document?

I have found a bunch of example code on how to wire up Add-In tools, but the Add-in I'm creating is a button.

It should be as easy as wiring up event listeners for ActiveView event listeners, but it seems ESRI takes away the ability of clicking on a map because they want to force us to use tools instead of buttons for map interaction??

Maybe a repost of Handling mouse events for tool called by button?

4
  • 1
    I've put an example of how I've done that in the linked post.
    – kenbuja
    Dec 24, 2013 at 14:01
  • The Add-In your using is a Tool, but I'm looking for the ArcMap Mouse Up event listener using a Button Add-In.
    – user19055
    Jan 2, 2014 at 20:12
  • 1
    There are no listeners in a Button that will interact with the map. You have to use a Tool. My example shows how to call a Tool from a Button, allowing you to interact with the map.
    – kenbuja
    Jan 2, 2014 at 20:18
  • Yeah, I went around with ESRI on this. IMO, developers should have access to mouse events on the Map irregardless of what kind of Add-In is being used. This should be the same methodologically as wiring up the IActiveViewEvents.
    – user19055
    Jan 3, 2014 at 22:06

1 Answer 1

-2

ESRI prevents developers from having fine grained control over how the user interacts with the map.

So, in order to access a mouse events on the map, a "Tool" Add-In needs to be used.

Not the answer you're looking for? Browse other questions tagged or ask your own question.