Customize Toolbars/en

Synopsis
This tutorial shows you the customization of toolbars. Tools (inclusive Macro-tools) can used in different workbenches. In an example a Macro becomes a Macro-tool by creation of a Menu text, a Tool tip and an Icon. Afterwards this Macro-tool becomes part of an extra toolbar in a workbench.

Use
1 : Click



or right click on any toolbar




 * The Customize window appears.



2. Make a Macro to a Macro-Tool

2 : select the "Macro" tab

3 : to add a toolbar icon for your macro click the Pixmap button (labelled )



4 : search for an appropriate icon from amongst FreeCAD's existing icons,

[or add your own icon by clicking ]. (expand for an example)



5b : you will get a file selection window, select your custom image file (PNG format, 64x64 pixels)




 * Select your icon and click.




 * The icon you selected is now displayed next to the Pixmap button labelled.




 * 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.



10 : your button has now been created



11 : create a toolbar for the button

12 : go to the Toolbars tab and choose your workbench in the drop down on the right (Part in this example)

Since version 0.15 there is a toolbar. If your toolbar is docked in this bar, it will always remain visible



13 : in the dropdown on the left select Macros



14 : your macro and its icon appears in the list



15 : Click the button (you can choose your toolbar here and it will be attached to the Part Workbench)



16 : in the window "New Toolbar" enter the name for your toolbar and click



17 : your toolbar has now been created - make sure you check its checkbox so that it will actually appear


 * To add the creadet macro-tool to this toolbar, select it in the left window and then click the with the arrow pointing right.



19 : you have now created a toolbar called "Camera"

20 : click the button



21 : your new toolbar with its button is now displayed above the active window as well as in the toolbars' right-click menu