<?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: Set the mouse cursor to wait cursor in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-the-mouse-cursor-to-wait-cursor/m-p/874379#M5351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are developing a custom tool in Pro, here is a code snippet to modify the tool's cursor:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-MapExploration#change-the-cursor-of-a-tool"&gt;Change the cursor of a Tool&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Dec 2019 16:36:29 GMT</pubDate>
    <dc:creator>UmaHarano</dc:creator>
    <dc:date>2019-12-06T16:36:29Z</dc:date>
    <item>
      <title>Set the mouse cursor to wait cursor</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-the-mouse-cursor-to-wait-cursor/m-p/874378#M5350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to set the cursor to wait cursor. In ArcObjects, this works as follows:&lt;/P&gt;&lt;P&gt;IMouseCursor mouseCursor = new MouseCursorClass();&lt;/P&gt;&lt;P&gt;mouseCursor.SetCursor(2); // Wait cursor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the wait cursor from System.Windows.Forms, it turns back to default cursor as soon as I move the mouse:&lt;/P&gt;&lt;P&gt;Cursor.Current = Cursors.WaitCursor;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a good way to do this in ArcGIS Pro?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2019 13:17:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-the-mouse-cursor-to-wait-cursor/m-p/874378#M5350</guid>
      <dc:creator>BarbaraSchneider2</dc:creator>
      <dc:date>2019-12-06T13:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set the mouse cursor to wait cursor</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-the-mouse-cursor-to-wait-cursor/m-p/874379#M5351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are developing a custom tool in Pro, here is a code snippet to modify the tool's cursor:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-MapExploration#change-the-cursor-of-a-tool"&gt;Change the cursor of a Tool&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2019 16:36:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-the-mouse-cursor-to-wait-cursor/m-p/874379#M5351</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2019-12-06T16:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set the mouse cursor to wait cursor</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-the-mouse-cursor-to-wait-cursor/m-p/874380#M5352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Uma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your reply! I am not developing a custom tool. I run some calculations that last several seconds or minutes, and I want to show the user that she/he has to wait. With ArcObjects (using IMouseCursor), this worked perfect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2019 17:27:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-the-mouse-cursor-to-wait-cursor/m-p/874380#M5352</guid>
      <dc:creator>BarbaraSchneider2</dc:creator>
      <dc:date>2019-12-06T17:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set the mouse cursor to wait cursor</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-the-mouse-cursor-to-wait-cursor/m-p/874381#M5353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this would work for you, but perhaps you could put in a Progress Dialog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; progDlg &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;ProgressDialog&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Running Geoprocessing Tool"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Cancel"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
progDlg&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Show&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; progSrc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;CancelableProgressorSource&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;progDlg&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:57:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-the-mouse-cursor-to-wait-cursor/m-p/874381#M5353</guid>
      <dc:creator>MatthewDriscoll</dc:creator>
      <dc:date>2021-12-12T10:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set the mouse cursor to wait cursor</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-the-mouse-cursor-to-wait-cursor/m-p/874382#M5354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly what I am looking for. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2019 14:39:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-the-mouse-cursor-to-wait-cursor/m-p/874382#M5354</guid>
      <dc:creator>BarbaraSchneider2</dc:creator>
      <dc:date>2019-12-09T14:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set the mouse cursor to wait cursor</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-the-mouse-cursor-to-wait-cursor/m-p/1582862#M12591</link>
      <description>&lt;P&gt;If you are trying to do this in Code for a Add-In, to set the wait cursor for the Application while waiting for a long running process to complete use the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FrameworkApplication.Current.MainWindow.Cursor = System.Windows.Input.Cursors.Wait;&lt;/STRONG&gt;&lt;BR /&gt;Application.UseWaitCursor = true;&lt;/P&gt;&lt;P&gt;frmLoading.Show(); &amp;lt;--this is just a simple form telling the user Why they are waiting.&lt;/P&gt;&lt;P&gt;MyrLongRunningProcess();&lt;/P&gt;&lt;P&gt;frmLoading.Close();&lt;/P&gt;&lt;P&gt;Application.UseWaitCursor = false;&lt;BR /&gt;FrameworkApplication.Current.MainWindow.Cursor = System.Windows.Input.Cursors.Arrow;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 21:25:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-the-mouse-cursor-to-wait-cursor/m-p/1582862#M12591</guid>
      <dc:creator>RichardDaniels</dc:creator>
      <dc:date>2025-02-06T21:25:01Z</dc:date>
    </item>
  </channel>
</rss>

