Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm writing an Add-In for ArcGIS 10 and would like to use the standard mouse cursors ArcMap uses (e.g. the info cursor and the edit cursor). I hope it is possible to just use the right reference in the add-in config file and not copy the cursor image file.

share|improve this question
add comment

1 Answer 1

You can reference whatever cursor you would like in the config file but you might have to copy the image to your project which is what you don't want to do.

Beyond that you can use the IMouseCursor.SetCursor Method and choose one of the 11 default cursors.

share|improve this answer
    
These default cursors are the system's default cursors. What I'm looking for are the ArcGIS cursors (e.g. the one used by the identify tool). There is an enum value esriControlsMousePointer.esriPointerIdentify, but how can I use this one in a add-in Tool? –  geoSuleiman Mar 30 '12 at 14:45
    
Those could be icons not cursors. (Editing Tool, etc) You can find a lot of those in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\Icons" They are in a zipped folder. I don't know of another way but to copy and use the icon/cursor you want in the config file which works for me. I also make my own cursors and that works just as well. –  Jakub Mar 30 '12 at 15:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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