Select to view content in your preferred language

Map Mouse Events - ArcGIS Desktop

648
1
10-26-2010 11:11 PM
UjjwalNigam
Regular Contributor
Hi,
Is there a clean, ArcObjects friendly way to listen for mouse events in the main ArcMap window without using an ITool?

I'm developing a command which displays a custom .Net form. On the form there's a button which gets enabled upon user selecting a particular value from a dropdown. Once enabled, the form minimizes and allows the user to select features (using Select Features built-in tool). I mainly need the envelope of the rectangle drawn by the user during selection.

I've tried implementing the ITool in the same class as my ICommand, but the mouse events never seem to get fired.

Any suggestions...?
0 Kudos
1 Reply
UjjwalNigam
Regular Contributor
OK this is resolved!!!
I had to implement ICommand & ITool within the same class...
The reason it was not firing earlier was that I was calling the Selection Tool to select features...now Im using Envelope Feedback to track the rectangle and doing a Spatial Search.
0 Kudos