TutorialInfo: Topic: Customize Toolbars Level: Beginner Time: 5 minutes Author: User:Mario52 FCVersion: All SeeAlso: Interface_Customization.
Customize Toolbars
Synopsis
This tutorial shows how to add a button for a macro to a custom toolbar.
For more general information see Interface Customization.
Usage
1. Find the Customize Menu
- Click Main Menu → Tools → Customize,
![Customize](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CustomizeToolBar_01.png)
- or right click on any toolbar.
![Right mouse click](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CustomizeToolBar_02.png)
- The Customize window appears.
![The Customize window appears](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CustomizeToolBar_03.png)
2. Make a Macro to a Macro-Tool
-
Select the \"Macro\" tab.
-
To add an icon for the provided macro click the Pixmap button (labelled ... ).
![Select a toolbar](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CustomizeToolBar_04.png)
- Search for an appropriate icon from amongst FreeCAD\'s existing icons,
[or add your own icon by clicking Add icons...]. (expand for an example)
![Add icon](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CustomizeToolBar_05.png)
[You will get a file selection window, select your custom image file (PNG format, 64x64 pixels)]
![Get a file](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CustomizeToolBar_06.png)
- Select your icon and click OK.
![Select your icon](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CustomizeToolBar_07.png)
- The icon you selected is now displayed next to the Pixmap button labelled ....
![Your icon is displayed](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CustomizeToolBar_08.png)
-
Select the provided macro in line Macro: and specify a Menu text: (which will appear as the text label in the menu); also fill in the \'Tool Tip\': (which is the text that will appear when a mouse is over the button on the toolbar); further lines are optional.
-
Click the button Add.
![Click the button](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CustomizeToolBar_09.png)
- The button of the macro-tool is now created.
![Your button is created](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CustomizeToolBar_10.png)
3. Create a toolbar outside the workbench Macro which contains the created Macro-tool
- Select the Toolbars tab and choose the workbench (for which the toolbar is provided) in the drop down on the right (Part in this example).
[Since version 0.15 there is a [ Global toolbar. If this is selected, the provided toolbar will be in each workbench.]
![Toolbars tab](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CustomizeToolBar_11.png)
- In the dropdown on the left select Macros.
![Macros](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CustomizeToolBar_12.png)
- The macro-tool with its icon appears in the list.
![Your icon is listed](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CustomizeToolBar_13.png)
- Click the button New...
<img alt="Click on \"New\"" src=https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CustomizeToolBar_14.png style="width:640px;">
- In the window \"New Toolbar\" enter the name of the provided extra toolbar for the Part Workbench and click OK
![Enter the name for your toolbar](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CustomizeToolBar_15.png)
-
The toolbar is now created.
-
To add the created macro-tool to this toolbar, select it in the left window and then click the Button with the arrow pointing right.
![Select your macro](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CustomizeToolBar_16.png)
-
You have created now a toolbar called \"Camera\" (with the Macro-tool Camera in it)
-
Click the Close button.
![Close](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CustomizeToolBar_17.png)
- Your new toolbar is now contained in the toolbars\' right-click menu. Its Icons (in our example only the camera) are visible, if the toolbar is activated (blue checkmark).
![New Toolbar](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CustomizeToolBar_18.png)
⏵ documentation index > Preferences > Customize Toolbars
This page is retrieved from https://github.com/FreeCAD/FreeCAD-documentation/blob/main/wiki/Customize_Toolbars.md