<?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: How to detect when a toolbar is closed in ArcMap 10 in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-detect-when-a-toolbar-is-closed-in-arcmap/m-p/324396#M8456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alexander,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying your suggestion but it seems like the Enabled event on a command is not fired when the parent toolbar is not visible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2013 20:55:05 GMT</pubDate>
    <dc:creator>TimSexton1</dc:creator>
    <dc:date>2013-02-20T20:55:05Z</dc:date>
    <item>
      <title>How to detect when a toolbar is closed in ArcMap 10</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-detect-when-a-toolbar-is-closed-in-arcmap/m-p/324392#M8452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a custom toolbar developed in C# using ArcObjects that is displayed in ArcMap 10.&amp;nbsp; I need to run a function whenever the toolbar is closed/hidden but I have yet to find an event to go by.&amp;nbsp; I've looked at document and toolbar events but cannot seem to find one that fits.&amp;nbsp; Any help is greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 13:48:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-detect-when-a-toolbar-is-closed-in-arcmap/m-p/324392#M8452</guid>
      <dc:creator>TimSexton1</dc:creator>
      <dc:date>2013-02-19T13:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect when a toolbar is closed in ArcMap 10</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-detect-when-a-toolbar-is-closed-in-arcmap/m-p/324393#M8453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As far as I know, there isn't any way to be notified when a toolbar is closed.&amp;nbsp; What is it you're wanting to do when it's closed?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 17:19:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-detect-when-a-toolbar-is-closed-in-arcmap/m-p/324393#M8453</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-02-19T17:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect when a toolbar is closed in ArcMap 10</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-detect-when-a-toolbar-is-closed-in-arcmap/m-p/324394#M8454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have seen something similar done in a very cludgy way.&amp;nbsp; Basically, if the event doesn't exist you can make your own.&amp;nbsp; I have seen commands placed on an interface for the sole purpose of taking advantage of the enabled property being fired basically all the time.&amp;nbsp; In the enabled property they place a check to the desired command bar isvisible property and raise a custom event if it changes.&amp;nbsp; The reference to the command bar was obtained only once. Like I said cludgy but some times you have little choice.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 18:08:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-detect-when-a-toolbar-is-closed-in-arcmap/m-p/324394#M8454</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2013-02-19T18:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect when a toolbar is closed in ArcMap 10</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-detect-when-a-toolbar-is-closed-in-arcmap/m-p/324395#M8455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;As far as I know, there isn't any way to be notified when a toolbar is closed.&amp;nbsp; What is it you're wanting to do when it's closed?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've developed a custom user control that resides on the toolbar in question.&amp;nbsp; The custom control has on/off modes that control some functionality on a set of feature classes in the map while editing and if the control is 'on' when the user closes the toolbar, I need to set the mode to 'off' on the custom control to prevent any confusion if the user no longer intends to leave it on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The command on the toolbar that hosts my custom control implements BaseTool and IToolControl.&amp;nbsp; Maybe I should be looking into one of those for an event?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 19:51:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-detect-when-a-toolbar-is-closed-in-arcmap/m-p/324395#M8455</guid>
      <dc:creator>TimSexton1</dc:creator>
      <dc:date>2013-02-19T19:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect when a toolbar is closed in ArcMap 10</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-detect-when-a-toolbar-is-closed-in-arcmap/m-p/324396#M8456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alexander,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying your suggestion but it seems like the Enabled event on a command is not fired when the parent toolbar is not visible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 20:55:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-detect-when-a-toolbar-is-closed-in-arcmap/m-p/324396#M8456</guid>
      <dc:creator>TimSexton1</dc:creator>
      <dc:date>2013-02-20T20:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect when a toolbar is closed in ArcMap 10</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-detect-when-a-toolbar-is-closed-in-arcmap/m-p/324397#M8457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Alexander,&lt;BR /&gt;&lt;BR /&gt;I'm trying your suggestion but it seems like the Enabled event on a command is not fired when the parent toolbar is not visible.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No the enabled is only fired when the command is visible...&amp;nbsp; That won't work if the command is on the toolbar you want to assess the visibility...&amp;nbsp; The event stops firing precisely when you want to check...&amp;nbsp; It has to be on a different command bar.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 15:45:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-detect-when-a-toolbar-is-closed-in-arcmap/m-p/324397#M8457</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2013-02-22T15:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect when a toolbar is closed in ArcMap 10</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-detect-when-a-toolbar-is-closed-in-arcmap/m-p/324398#M8458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I figured placing it on a command on another toolbar would work, but unfortunately that is too unpredictable for me to use (what if the other toolbar is already closed - nothing happens and I'm back in the same boat).&amp;nbsp; Thanks for your help guys, it was worth a shot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 17:39:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-detect-when-a-toolbar-is-closed-in-arcmap/m-p/324398#M8458</guid>
      <dc:creator>TimSexton1</dc:creator>
      <dc:date>2013-02-22T17:39:58Z</dc:date>
    </item>
  </channel>
</rss>

