Toolbar spacer

2234
1
Jump to solution
07-16-2012 05:50 AM
BrentHoskisson
Occasional Contributor III
I have a toolbar in my addins.  How do I create a spacer (the line that often separates two tools) in my toolbar?
0 Kudos
1 Solution

Accepted Solutions
MichaelRobb
Occasional Contributor III
This is done in your Config.esriaddin file (XML)

in your Menu >> items.

This is not showing the entire XML file but shows you where the 'separation' comes into play.
When set to true... the space if in the toolbar, will appear BEFORE the tool. If in a menu, will appear above.



<Toolbars>
<Toolbar id="CompanyToolsToolbar" caption="Our Company Toolbar ©2012 v11.1" showInitially="true">
<Items>
<!--Reference to the custom menu to provide access to the custom multiItem -->
<Menu refID="CompanyToolsToolbar_Addin_v10_SomeMenu" separator="false"/>

<!--Reference to the custom menu to provide access to the custom multiItem -->
<Menu refID="CompanyToolsToolbar_Addin_v10_DataCreateMenu" separator="false"/>

<!--Reference to the custom menu to provide access to the custom multiItem -->
<Menu refID="CompanyToolsToolbar_Addin_v10_DistancesMenu" separator="false"/>

<!--Reference to the custom menu to provide access to the custom multiItem -->
<Menu refID="CompanyToolsToolbar_Addin_v10_ConverterMenu" separator="false"/>

<!--Reference to the custom menu to provide access to the custom multiItem -->
<Menu refID="CompanyToolsToolbar_Addin_v10_TableDatasetMenu" separator="false"/>

<!--Reference to the custom menu to provide access to the custom multiItem -->
<Menu refID="CompanyToolsToolbar_Addin_v10_CoordinatesMenu" separator="false"/>

<!--BUTTONS-->
<!--Reference to the custom button and tool-->
<Button refID="CompanyToolsToolbar_Addin_v10_MapLayoutSpelling" separator="true"/>

<!--Reference to the custom button and tool-->
<Button refID="CompanyToolsToolbar_Addin_v10_ProjectTracker" separator="true"/>
</Items>
</Toolbar>
</Toolbars>

</ArcMap>
</AddIn>

View solution in original post

1 Reply
MichaelRobb
Occasional Contributor III
This is done in your Config.esriaddin file (XML)

in your Menu >> items.

This is not showing the entire XML file but shows you where the 'separation' comes into play.
When set to true... the space if in the toolbar, will appear BEFORE the tool. If in a menu, will appear above.



<Toolbars>
<Toolbar id="CompanyToolsToolbar" caption="Our Company Toolbar ©2012 v11.1" showInitially="true">
<Items>
<!--Reference to the custom menu to provide access to the custom multiItem -->
<Menu refID="CompanyToolsToolbar_Addin_v10_SomeMenu" separator="false"/>

<!--Reference to the custom menu to provide access to the custom multiItem -->
<Menu refID="CompanyToolsToolbar_Addin_v10_DataCreateMenu" separator="false"/>

<!--Reference to the custom menu to provide access to the custom multiItem -->
<Menu refID="CompanyToolsToolbar_Addin_v10_DistancesMenu" separator="false"/>

<!--Reference to the custom menu to provide access to the custom multiItem -->
<Menu refID="CompanyToolsToolbar_Addin_v10_ConverterMenu" separator="false"/>

<!--Reference to the custom menu to provide access to the custom multiItem -->
<Menu refID="CompanyToolsToolbar_Addin_v10_TableDatasetMenu" separator="false"/>

<!--Reference to the custom menu to provide access to the custom multiItem -->
<Menu refID="CompanyToolsToolbar_Addin_v10_CoordinatesMenu" separator="false"/>

<!--BUTTONS-->
<!--Reference to the custom button and tool-->
<Button refID="CompanyToolsToolbar_Addin_v10_MapLayoutSpelling" separator="true"/>

<!--Reference to the custom button and tool-->
<Button refID="CompanyToolsToolbar_Addin_v10_ProjectTracker" separator="true"/>
</Items>
</Toolbar>
</Toolbars>

</ArcMap>
</AddIn>