<?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: Add a global variables to a toolbar in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-a-global-variables-to-a-toolbar/m-p/255489#M6548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you describe the variable you're needing to set? If these buttons/tools are within the same project you could create a global variable within their source code and initialize it within the constructor of the buttons/tools.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2015 16:27:44 GMT</pubDate>
    <dc:creator>FreddieGibson</dc:creator>
    <dc:date>2015-09-29T16:27:44Z</dc:date>
    <item>
      <title>Add a global variables to a toolbar</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-a-global-variables-to-a-toolbar/m-p/255488#M6547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a toolbar for ArcGIS 10.3 using ArcObjects .NET10.3 c#.&lt;/P&gt;&lt;P&gt;It has couple of buttons and a tool. I want to set a global variable before any of these buttons and tools are created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Masroor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 21:04:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-a-global-variables-to-a-toolbar/m-p/255488#M6547</guid>
      <dc:creator>MasroorHussain</dc:creator>
      <dc:date>2015-09-28T21:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Add a global variables to a toolbar</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-a-global-variables-to-a-toolbar/m-p/255489#M6548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you describe the variable you're needing to set? If these buttons/tools are within the same project you could create a global variable within their source code and initialize it within the constructor of the buttons/tools.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 16:27:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-a-global-variables-to-a-toolbar/m-p/255489#M6548</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-09-29T16:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Add a global variables to a toolbar</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-a-global-variables-to-a-toolbar/m-p/255490#M6549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Freddie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add a check that if Vector Layer Edit Mode is ON, enable all the buttons. By default I want the buttons to be disabled. Also, when the editing is done and mode is changed (Not Editing), I want to disable all the buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Masroor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 18:55:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-a-global-variables-to-a-toolbar/m-p/255490#M6549</guid>
      <dc:creator>MasroorHussain</dc:creator>
      <dc:date>2015-09-29T18:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add a global variables to a toolbar</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-a-global-variables-to-a-toolbar/m-p/255491#M6550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried modifying the Enabled property of the button using your logic to check if the editor is active within the OnUpdate method of the button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Esri.ArcGIS.Desktop.Addins.Button &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/#/Button_Class/001v000000r4000000/" title="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/#/Button_Class/001v000000r4000000/"&gt;http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/#/Button_Class/001v000000r4000000/&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 00:04:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-a-global-variables-to-a-toolbar/m-p/255491#M6550</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-09-30T00:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Add a global variables to a toolbar</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-a-global-variables-to-a-toolbar/m-p/255492#M6551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Freddie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing the same and it works.&lt;/P&gt;&lt;P&gt;But I have to do it for all the buttons on a toolbar separately. I was wondering if we can do it for the Group and Set and Get the status by using some global Static Variable.&lt;/P&gt;&lt;P&gt;Also, I want to know if there is an order or 'initialization' if I create multiple buttons and tools in a toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Masroor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 00:49:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-a-global-variables-to-a-toolbar/m-p/255492#M6551</guid>
      <dc:creator>MasroorHussain</dc:creator>
      <dc:date>2015-09-30T00:49:19Z</dc:date>
    </item>
  </channel>
</rss>

