29.2. Multiple toolBars
Prev | 29. toolBar | Next

### 29.2. Multiple toolBars

Specifying a `name` attribute for the `toolBar` element allows to create a GUI having several XML application specific tool bars.

Example:

1. In ``XXE_user_preferences_dir`/addon/xhtml.xxe`, add something like this:

       <toolBar name="toolBar2">
         ...
       </toolBar>

2. In ``XXE_user_preferences_dir`/addon/docbook.xxe`, add something like this:

       <toolBar name="toolBar2">
         ...
       </toolBar>

   Notice that the same name `toolBar2` is used in all XML application specific configuration files.

3. In ``XXE_user_preferences_dir`/addon/customize.xxe_gui` (see XMLmind XML Editor - Customizing the User Interface), add something like this:

       <toolBarItems name="configSpecificToolBarItems2">
         <class>com.xmlmind.xmleditapp.kit.part.ConfigSpecificToolBarItems</class>
         <property name="specificationName" type="String" value="toolBar2" />
       </toolBarItems>

       <toolBar name="configSpecificToolBar2">
         <toolBarItems name="configSpecificToolBarItems2" />
       </toolBar>

       <layout>
         <topToolBars>
           <insert />
           <toolBar name="configSpecificToolBar2" />
         </topToolBars>
       </layout>

Prev | Up | Next
29.1. Custom controls | Home | 30. translation