<?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 Caption of Base Command in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396809#M10594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately this is a known-limit at 10.0 with the new command bars. At 10.1 you will be able to use CommandItem.Caption to accomplish this workflow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Nov 2011 15:43:49 GMT</pubDate>
    <dc:creator>ChrisFox3</dc:creator>
    <dc:date>2011-11-21T15:43:49Z</dc:date>
    <item>
      <title>Change Caption of Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396801#M10586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a tool that inherits BaseCommand.&amp;nbsp; It's set as a Toggle button to be toggled on when editing and off when not.&amp;nbsp; When toggled on the caption should read "Stop Editing" and when Off it should read "Start Editing".&amp;nbsp; The code below worked fine in 9.3.1 but for some reason the caption no longer changes.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; Public Overrides Sub OnClick()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'TODO: Add StartStopEditing.OnClick implementation

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pID As New UID
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pfLayer As IFeatureLayer = Nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pDataSet As IDataset = Nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pMxDoc As IMxDocument = Nothing

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Start/Stop Editing Sign workspace
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pID.Value = "esriEditor.Editor"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _pEditor = m_application.FindExtensionByCLSID(pID)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pMxDoc = CType(m_application.Document, IMxDocument)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pfLayer = pMxDoc.FocusMap.Layer(GetIndexNumberOfLayerName(pMxDoc.ActiveView, sLayerName))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pDataSet = pfLayer.FeatureClass
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If _pEditor.EditState = ESRI.ArcGIS.Editor.esriEditState.esriStateNotEditing Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _pEditor.StartEditing(pDataSet.Workspace)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyBase.m_caption = "Stop Editing"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyBase.m_checked = True
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ElseIf _pEditor.EditState = ESRI.ArcGIS.Editor.esriEditState.esriStateEditing Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyBase.m_caption = "Start Editing"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyBase.m_checked = False
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _pEditor.StopEditing(True)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Catch ex As Exception
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox(ex.ToString)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Try
&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 16:35:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396801#M10586</guid>
      <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
      <dc:date>2011-04-13T16:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Change Caption of Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396802#M10587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm experiencing the same with my command under 10.&amp;nbsp; Did you come up with a solution?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 19:19:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396802#M10587</guid>
      <dc:creator>SherryVotava</dc:creator>
      <dc:date>2011-07-15T19:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Change Caption of Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396803#M10588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm experiencing the same with my command under 10.&amp;nbsp; Did you come up with a solution?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nope, I have yet to come to a solution.&amp;nbsp; Have you tried Tech Support?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 19:40:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396803#M10588</guid>
      <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
      <dc:date>2011-07-15T19:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change Caption of Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396804#M10589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Nope, I have yet to come to a solution.&amp;nbsp; Have you tried Tech Support?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No, I have not contacted them.&amp;nbsp; I need to talk to my end users first and see if they even care.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 11:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396804#M10589</guid>
      <dc:creator>SherryVotava</dc:creator>
      <dc:date>2011-07-18T11:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change Caption of Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396805#M10590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;No, I have not contacted them.&amp;nbsp; I need to talk to my end users first and see if they even care.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately I need it to change.&amp;nbsp; If I have time I'll call Support.&amp;nbsp; Let me know if you get a solution beforehand.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 19:46:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396805#M10590</guid>
      <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
      <dc:date>2011-07-18T19:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change Caption of Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396806#M10591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is logged as NIM059312. If you have support please contact ESRI technical support and have your customer information associated with the NIM.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 17:52:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396806#M10591</guid>
      <dc:creator>JohnHauck</dc:creator>
      <dc:date>2011-07-29T17:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change Caption of Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396807#M10592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This is logged as NIM059312. If you have support please contact ESRI technical support and have your customer information associated with the NIM.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Contacted Support.&amp;nbsp; They created a new incident and referenced the NIM.&amp;nbsp; What should my expectations be of this being fixed relatively soon?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 18:48:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396807#M10592</guid>
      <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
      <dc:date>2011-08-03T18:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Change Caption of Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396808#M10593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just did a quick lookup to see the status of this bug.&amp;nbsp; When i search customers.esri.com there is no update.&amp;nbsp; BUT.. if I just search for the NIM under support.esri.com I see it has been "DECLINED".&amp;nbsp; Really!?&amp;nbsp; Since when is it appropriate to decline fixing something that used to work to begin with?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 12:12:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396808#M10593</guid>
      <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
      <dc:date>2011-11-21T12:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Change Caption of Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396809#M10594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately this is a known-limit at 10.0 with the new command bars. At 10.1 you will be able to use CommandItem.Caption to accomplish this workflow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 15:43:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396809#M10594</guid>
      <dc:creator>ChrisFox3</dc:creator>
      <dc:date>2011-11-21T15:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change Caption of Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396810#M10595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't tried yet but, will CommandItem.Caption work at 10.0?&amp;nbsp; If not, what is (or is there)a workaround?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UPDATE:&amp;nbsp; I tried... It didn't work.&amp;nbsp; So what do us 10.0 users do?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 15:46:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396810#M10595</guid>
      <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
      <dc:date>2011-11-21T15:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Change Caption of Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396811#M10596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is actually another bug related to ICommandItem.Caption property not behaving as expected, NIM072205. This bug is fixed at 10.1 and will be fixed in Service Pack 4 for ArcGIS 10 as well. So at this time there is no workaround for 10, however when Service Pack 4 is released early next year you should be able to use ICommandItem.Caption.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 15:47:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/change-caption-of-base-command/m-p/396811#M10596</guid>
      <dc:creator>ChrisFox3</dc:creator>
      <dc:date>2011-11-22T15:47:06Z</dc:date>
    </item>
  </channel>
</rss>

