<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: unable to change mouse pointer in arcgis engine application  --  axToolbarControl in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/unable-to-change-mouse-pointer-in-arcgis-engine/m-p/168368#M4348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've experienced similar trouble and posted a thread recently for this : &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/52090-Setting-the-mouse-cursor-in-a-custom-application" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/52090-Setting-the-mouse-cursor-in-a-custom-application&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that ArcObjects overrides the application cursor with its own cursor property depending on which functionality is being invoked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tracking a pan operation for instance, will cause ArcObjects to override the cursor (at each relevant internal event trigger) even if you set it explicitly for the application through DotNet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What we probably need is a way (interface) to specifically tell ArcObjects not to change the cursor when we don't want it to - or, to provide it with a set of cursor descriptions to use under which circumstances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My first guess was to use IMouseCursor:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMouseCursor appCursor = new MouseCursorClass();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; appCursor.SetCursor(2);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but IMouseCursor is only available for ArcDesktop (and even if it was available for Engine, I'm not sure if it would help).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So the question remains, how can we get more accurate control over the mouse cursor?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 08:45:48 GMT</pubDate>
    <dc:creator>ManfredLauterbach</dc:creator>
    <dc:date>2021-12-11T08:45:48Z</dc:date>
    <item>
      <title>unable to change mouse pointer in arcgis engine application  --  axToolbarControl</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/unable-to-change-mouse-pointer-in-arcgis-engine/m-p/168367#M4347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have this windows application built with ArcGIS engine 10. in the form I have couple of buttons, a map control and a axToolbarControl. once a item on the axToolbarControl is clicked for example ZoomIn button, the mouse pointer change to the ZoomIn icon which is good. I have this button when user click on it, they can start adding a point on the map. I want to change the mouse pointer to arrow after user clicks the button. here is what i did&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. when the button is clicked, set the map toolmode to be 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. in mouseMove event, if toolmode == 1, set the mousepointer to be arrow: axMapControl1.MousePointer = esriControlsMousePointer.esriPointerArrow;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. in map mousedown event, if toolmode = 1, do things....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the mouse pointer remained ZoomIn. i can't seem to change it to another one. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 20:12:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/unable-to-change-mouse-pointer-in-arcgis-engine/m-p/168367#M4347</guid>
      <dc:creator>YingLin</dc:creator>
      <dc:date>2012-03-16T20:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: unable to change mouse pointer in arcgis engine application  --  axToolbarControl</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/unable-to-change-mouse-pointer-in-arcgis-engine/m-p/168368#M4348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've experienced similar trouble and posted a thread recently for this : &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/52090-Setting-the-mouse-cursor-in-a-custom-application" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/52090-Setting-the-mouse-cursor-in-a-custom-application&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that ArcObjects overrides the application cursor with its own cursor property depending on which functionality is being invoked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tracking a pan operation for instance, will cause ArcObjects to override the cursor (at each relevant internal event trigger) even if you set it explicitly for the application through DotNet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What we probably need is a way (interface) to specifically tell ArcObjects not to change the cursor when we don't want it to - or, to provide it with a set of cursor descriptions to use under which circumstances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My first guess was to use IMouseCursor:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMouseCursor appCursor = new MouseCursorClass();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; appCursor.SetCursor(2);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but IMouseCursor is only available for ArcDesktop (and even if it was available for Engine, I'm not sure if it would help).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So the question remains, how can we get more accurate control over the mouse cursor?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:45:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/unable-to-change-mouse-pointer-in-arcgis-engine/m-p/168368#M4348</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2021-12-11T08:45:48Z</dc:date>
    </item>
  </channel>
</rss>

