Hi All,
By using C#, I want to access the statusbar of MapWindow in ArcGIS Pro i.e. need to display the customized/user value(text) in the existing status bar. How to update the statusbar by using C#? Kindly suggest.
<SPAN class="keyword token">var</SPAN> progDlg <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">ProgressDialog</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"YOUR MESSAGE HERE"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"Cancel"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> progDlg<SPAN class="punctuation token">.</SPAN><SPAN class="token function">Show</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="keyword token">var</SPAN> progSrc <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">CancelableProgressorSource</SPAN><SPAN class="punctuation token">(</SPAN>progDlg<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Thanks Matthew for the quick response.
I had tested the code and it is executing without errors. But I cann't able to find the output/result as ArcGIS-Pro environment is new for me(I mean where to find the progress dialog inside the ArcGIS-Pro window).
Could you please send me a simple screenshot which represents the output?
It will show up in the middle of your screen. Message boxes will not display if you started the application within Visual Studio. Run the add-in directly from a native Pro startup.
Yes. Now I can able to see the output(by executing the add-in directly). But I want the text to be displayed at the bottom of map window.. Similar to the X,Y Co-Ordinates.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.