<?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 show Caption as well as icon for a Base Command in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-caption-as-well-as-icon-for-a-base/m-p/433601#M11747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having the same problem understanding where this would be implemented using an ArcMap 10 Add-in.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like two of my toolbar buttons to default to 'image and text' but the only place I can see the toolbar referenced is in the Config.esriaddinx XML.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where should this code be placed so that if fires on startup?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A VB.Net code snippet would be a bonus.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Assume I have a toolbar named 'Toolbar1' and a single button named 'Button1'.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Nov 2010 01:46:17 GMT</pubDate>
    <dc:creator>PaulBarter</dc:creator>
    <dc:date>2010-11-26T01:46:17Z</dc:date>
    <item>
      <title>How to show Caption as well as icon for a Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-caption-as-well-as-icon-for-a-base/m-p/433597#M11743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have no problems creating custom toolbars and commands using visual studio and c#.&amp;nbsp; Just wanted to know if it was possible to setup a command so that it shows the caption as well as the icon when the toolbar is first used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This would be the equivilent of right clicking on the button in customise mode and selecting "image and text"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If its possible then please tell me how.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 01:56:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-caption-as-well-as-icon-for-a-base/m-p/433597#M11743</guid>
      <dc:creator>RobertDriessen</dc:creator>
      <dc:date>2010-11-18T01:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to show Caption as well as icon for a Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-caption-as-well-as-icon-for-a-base/m-p/433598#M11744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ICommandItem.Style will give you the information for arcmap desktop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IToolbarItem.Style will give you the information for ArcEngine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you just need to define Style property when you create your toolbar&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vincent&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 16:15:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-caption-as-well-as-icon-for-a-base/m-p/433598#M11744</guid>
      <dc:creator>vincentLahaye</dc:creator>
      <dc:date>2010-11-18T16:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to show Caption as well as icon for a Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-caption-as-well-as-icon-for-a-base/m-p/433599#M11745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;ICommandItem.Style will give you the information for arcmap desktop.&lt;BR /&gt;IToolbarItem.Style will give you the information for ArcEngine.&lt;BR /&gt;&lt;BR /&gt;I think you just need to define Style property when you create your toolbar&lt;BR /&gt;&lt;BR /&gt;Vincent&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you Vincent&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thats helpful,&amp;nbsp; but I am having trouble trying to figure out how to get to ICommandItem.&amp;nbsp; I am using the autogenerated code in Visual Studio for BaseCommand and BaseToolBar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 03:45:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-caption-as-well-as-icon-for-a-base/m-p/433599#M11745</guid>
      <dc:creator>RobertDriessen</dc:creator>
      <dc:date>2010-11-22T03:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to show Caption as well as icon for a Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-caption-as-well-as-icon-for-a-base/m-p/433600#M11746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ICommandbar.add returns an ICommandItem.&amp;nbsp; When you add the commands to the toolbar, set the objects returning to an ICommandItem variable.&amp;nbsp; You can then change the properties.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 14:12:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-caption-as-well-as-icon-for-a-base/m-p/433600#M11746</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2010-11-22T14:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to show Caption as well as icon for a Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-caption-as-well-as-icon-for-a-base/m-p/433601#M11747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having the same problem understanding where this would be implemented using an ArcMap 10 Add-in.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like two of my toolbar buttons to default to 'image and text' but the only place I can see the toolbar referenced is in the Config.esriaddinx XML.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where should this code be placed so that if fires on startup?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A VB.Net code snippet would be a bonus.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Assume I have a toolbar named 'Toolbar1' and a single button named 'Button1'.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Nov 2010 01:46:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-caption-as-well-as-icon-for-a-base/m-p/433601#M11747</guid>
      <dc:creator>PaulBarter</dc:creator>
      <dc:date>2010-11-26T01:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to show Caption as well as icon for a Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-caption-as-well-as-icon-for-a-base/m-p/433602#M11748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes I'd like to know how to do this too as I have followed an example to add a "Base Toolbar" as well as a new "Base Command" (or "Base Tool") item from the "Add New Item" dialog in Visual Studio 2008 and now have a toolbar with a button on it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I can't see how to specify the style of the button as the AddItem() method of the BaseToolbar class doesn't return an ICommandItem object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;E.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;public sealed class My_Toolbar : BaseToolbar
{
 public My_Toolbar()
 {
&amp;nbsp; //
&amp;nbsp; // TODO: Define your toolbar here by adding items
&amp;nbsp; //
&amp;nbsp; //AddItem("esriArcMapUI.ZoomInTool");
&amp;nbsp; //BeginGroup(); //Separator
&amp;nbsp; //AddItem("{FBF8C3FB-0480-11D2-8D21-080009EE4E51}", 1); //undo command
&amp;nbsp; //AddItem(new Guid("FBF8C3FB-0480-11D2-8D21-080009EE4E51"), 2); //redo command

&amp;nbsp; //"MyToolbarProj.MyTool" is derived from "BaseTool"
&amp;nbsp; AddItem("MyToolbarProj.MyTool");
 }
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:27:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-caption-as-well-as-icon-for-a-base/m-p/433602#M11748</guid>
      <dc:creator>GaryBroyd</dc:creator>
      <dc:date>2021-12-11T19:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to show Caption as well as icon for a Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-caption-as-well-as-icon-for-a-base/m-p/433603#M11749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thought this thread is a few months old, ill answer anyways.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps out Gary. (Im not a C# fan... so its vb here)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm having the same problem understanding where this would be implemented using an ArcMap 10 Add-in.&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;I'd like two of my toolbar buttons to default to 'image and text' but the only place I can see the toolbar referenced is in the Config.esriaddinx XML.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Where should this code be placed so that if fires on startup?&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;A VB.Net code snippet would be a bonus.&amp;nbsp; &lt;BR /&gt;Assume I have a toolbar named 'Toolbar1' and a single button named 'Button1'.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Cheers.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have read other methods such as through the extension if one is created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where is the code Fired from?&amp;nbsp;&amp;nbsp; ENABLED property&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Public ReadOnly Property Enabled() As Boolean Implements ICommand.Enabled
SetAsInconAndText()
end Property
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here is the call&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub SetAsIconAndText()

&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; ' Make sure button is showing Icon And Text
&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; Dim pUID As New UID
&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; pUID.Value = "{F53B91E1-C520-41a7-941C-686AA071D1A2}"&amp;nbsp; ' Toolbar GUID created!

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pCommandBar As ESRI.ArcGIS.Framework.ICommandBar
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pCommandBar = m_application.Document.CommandBars.Find(pUID, True, False)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim i As Integer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not pCommandBar Is Nothing 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; For i = 0 To pCommandBar.Count - 1
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If pCommandBar.Item(i).Name = "Property NAME used for tool" Then ' use the Property NAME of the button
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pCommandBar.Item(i).Style = esriCommandStyles.esriCommandStyleIconAndText
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit For
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&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; Next
&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; End Sub&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:27:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-caption-as-well-as-icon-for-a-base/m-p/433603#M11749</guid>
      <dc:creator>MichaelRobb</dc:creator>
      <dc:date>2021-12-11T19:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to show Caption as well as icon for a Base Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-caption-as-well-as-icon-for-a-base/m-p/433604#M11750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thought this thread is a few months old, ill answer anyways.&lt;BR /&gt;Hope this helps out Gary. (Im not a C# fan... so its vb here)&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for that Mike, I'll give it a go&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 09:09:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-caption-as-well-as-icon-for-a-base/m-p/433604#M11750</guid>
      <dc:creator>GaryBroyd</dc:creator>
      <dc:date>2011-03-31T09:09:59Z</dc:date>
    </item>
  </channel>
</rss>

