0

I would like to display a Message Box Dialog when the user activates the -esri selection tool- and double clicks anywhere on the map. or when they doubleclick any feature on the map

please note that I am not creating a new tool. MapControl is an option but I am not able to access the object, or cast anything to it. so please help

EDIT:- I have tried to cast my Focus map into a Mapcontrol and get that object and cast into ImapControlEvents2. and threw it I can handle the OndoubleClick event

I have tried getting the selection tool from the active tool and caste it into an Itool object but that didnt work since I am not creating a new tool,

I researched the API Reference provided on esri website to see what options I have and I found nothing that might help me. the interfaces that I need are the following,

5
  • What have you tried so far? Can you edit your question and add more information?
    – Branco
    Commented Jul 16, 2015 at 12:46
  • I edited the question
    – ZZZ
    Commented Jul 16, 2015 at 12:54
  • It has been a while since I have dealt in ArcObjects, but looking at (gis.stackexchange.com/questions/4630/…) leads me to believe you can override the doubleclick event (msdn.microsoft.com/en-us/library/…) and hopefully you can capture the mouse point area and convert it to map units using one of the ArcObjects interfaces.
    – Branco
    Commented Jul 16, 2015 at 13:45
  • here is what I did, I created a class that implements basetool, implemented all of base tool's methods. I run VS, arcmap opens, click on the map nothing happens. note that I am not trying to create a new tool, I am simply trying to catch the mouse events from the esri selction tool which is not working. Any other solutions or ideas ?
    – ZZZ
    Commented Jul 21, 2015 at 6:34
  • I have come to conclusion that it is not possible, unless I create a new tool .
    – ZZZ
    Commented Aug 4, 2015 at 9:26

1 Answer 1

0

You have to create a new tool in order to implement mouse events!

1
  • 2
    can expand on this to make it a better answer (even though it is an accepted answer) like how to implement mouse events
    – Mapperz
    Commented Sep 10, 2015 at 14:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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