<?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: Change Mouse Cursor in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-mouse-cursor/m-p/1160756#M8002</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to add your cursor file to visual studio project as resource. Instead of&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;"MapExploration&lt;/SPAN&gt;.&lt;SPAN class=""&gt;Resource1&lt;/SPAN&gt;.&lt;SPAN class=""&gt;red_cursor"&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;use&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Properties.Resources.&amp;lt;your_cursor_resource-name&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Apr 2022 14:14:02 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2022-04-04T14:14:02Z</dc:date>
    <item>
      <title>Change Mouse Cursor</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-mouse-cursor/m-p/1160670#M8000</link>
      <description>&lt;P&gt;I want to change the cursor pointer when user selects a tool, I got the sample but I don't know what&amp;nbsp; MapExploration.Resource1.red_cursor is ? I don't know if it is a file, file path or even an object. I appreciate if anyone gives me an explanation or a full example without shortcuts.&lt;/P&gt;&lt;P&gt;Here is the code in the sample:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;internal&lt;/SPAN&gt; &lt;SPAN class=""&gt;class&lt;/SPAN&gt; &lt;SPAN class=""&gt;CustomMapTool&lt;/SPAN&gt; : &lt;SPAN class=""&gt;MapTool&lt;/SPAN&gt;
{
    &lt;SPAN class=""&gt;public&lt;/SPAN&gt; &lt;SPAN class=""&gt;CustomMapTool&lt;/SPAN&gt;()
    {
        &lt;SPAN class=""&gt;IsSketchTool&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;true&lt;/SPAN&gt;;
        &lt;SPAN class=""&gt;SketchType&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;SketchGeometryType&lt;/SPAN&gt;.&lt;SPAN class=""&gt;Rectangle&lt;/SPAN&gt;;
        &lt;SPAN class=""&gt;SketchOutputMode&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;SketchOutputMode&lt;/SPAN&gt;.&lt;SPAN class=""&gt;Map&lt;/SPAN&gt;;
        &lt;SPAN class=""&gt;//A custom cursor file as an embedded resource&lt;/SPAN&gt;
        &lt;SPAN class=""&gt;var&lt;/SPAN&gt; &lt;SPAN class=""&gt;cursorEmbeddedResource&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;new&lt;/SPAN&gt; &lt;SPAN class=""&gt;Cursor&lt;/SPAN&gt;(&lt;SPAN class=""&gt;new&lt;/SPAN&gt; &lt;SPAN class=""&gt;MemoryStream&lt;/SPAN&gt;(&lt;SPAN class=""&gt;MapExploration&lt;/SPAN&gt;.&lt;SPAN class=""&gt;Resource1&lt;/SPAN&gt;.&lt;SPAN class=""&gt;red_cursor&lt;/SPAN&gt;));
        &lt;SPAN class=""&gt;//A built in system cursor&lt;/SPAN&gt;
        &lt;SPAN class=""&gt;var&lt;/SPAN&gt; &lt;SPAN class=""&gt;systemCursor&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;System&lt;/SPAN&gt;.&lt;SPAN class=""&gt;Windows&lt;/SPAN&gt;.&lt;SPAN class=""&gt;Input&lt;/SPAN&gt;.&lt;SPAN class=""&gt;Cursors&lt;/SPAN&gt;.&lt;SPAN class=""&gt;ArrowCD&lt;/SPAN&gt;;
        &lt;SPAN class=""&gt;//Set the "CustomMapTool's" Cursor property to either one of the cursors defined above&lt;/SPAN&gt;
        &lt;SPAN class=""&gt;Cursor&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;cursorEmbeddedResource&lt;/SPAN&gt;;
        &lt;SPAN class=""&gt;//or&lt;/SPAN&gt;
        &lt;SPAN class=""&gt;Cursor&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;systemCursor&lt;/SPAN&gt;;
    }&lt;/PRE&gt;&lt;P&gt;And here is the link of the sample &lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-MapExploration#change-the-cursor-of-a-tool" target="_blank" rel="noopener"&gt;Change the cursor of a tool&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 07:24:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-mouse-cursor/m-p/1160670#M8000</guid>
      <dc:creator>KhaledAliMoh</dc:creator>
      <dc:date>2022-04-04T07:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Change Mouse Cursor</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-mouse-cursor/m-p/1160756#M8002</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to add your cursor file to visual studio project as resource. Instead of&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;"MapExploration&lt;/SPAN&gt;.&lt;SPAN class=""&gt;Resource1&lt;/SPAN&gt;.&lt;SPAN class=""&gt;red_cursor"&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;use&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Properties.Resources.&amp;lt;your_cursor_resource-name&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 14:14:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-mouse-cursor/m-p/1160756#M8002</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-04-04T14:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Change Mouse Cursor</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-mouse-cursor/m-p/1162810#M8015</link>
      <description>&lt;P&gt;I had to add the file -as you said- as resource. This &lt;A href="https://stackoverflow.com/questions/90697/how-to-create-and-use-resources-in-net" target="_blank" rel="noopener"&gt;Link&lt;/A&gt;&amp;nbsp;also helped to add the file in the wright way.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2022 07:21:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-mouse-cursor/m-p/1162810#M8015</guid>
      <dc:creator>KhaledAliMoh</dc:creator>
      <dc:date>2022-04-09T07:21:19Z</dc:date>
    </item>
  </channel>
</rss>

