Select to view content in your preferred language

How to change the cursor of an  ITool

2587
11
01-18-2012 04:41 AM
SergioMunoz
Emerging Contributor
Hello everyone,

I am making an application with ARCGIS, and some actions take a lot of time (for example, zooming with ControlsMapZoomInToolClass). I would like to change the cursor to another one that tells the user that the application is busy (something like a sandwatch, or whatever), but Cursor property seems to be read only.

Is there any way to change the Cursor when the action begins, and revert it when it ends?

Thank you very much in advance.
0 Kudos
11 Replies
SergioMunoz
Emerging Contributor
You can create custom zoomin tool that inherits from itool and customize the cursor. Replace ControlsMapZoomInToolClass with custom zoom in tool.


Thank you for your reply, I already thought that solution, but ZoomIn is not the only tool I am using, and I don't want to replace all the tools I am using just because I want to change the icon. I cannot understand why the Cursor property is read only...
0 Kudos
GeorgeFaraj
Frequent Contributor
Thank you for your reply, I already thought that solution, but ZoomIn is not the only tool I am using, and I don't want to replace all the tools I am using just because I want to change the icon. I cannot understand why the Cursor property is read only...


Actually, that part is obvious. Since it is hidden in the COM object that backs the command it would require someone to write code in the wrapper in order to expose that property and there may be issues with the way it is implemented that require more effort (and cost) to solve than that functionality is worth - to someone.
0 Kudos