Customize Toolbars
Topic |
---|
SampleTopic |
Level |
Beginner |
Time to complete |
5 minutes |
Authors |
Mario52 |
FreeCAD version |
All |
Example files |
None |
See also |
None |
Synopsis
This tutorial walks you through how to create a Toolbar button and one or more buttons that connect you to your favourite macros or to other associated links whether there is a custom icon or not.
Use
1 : Click Menu → Tools → Customize
![Customize](/images/thumb/f/f7/CustomizeToolBar_01.png/640px-CustomizeToolBar_01.png)
or right click on any toolbar
![Right mouse click](/images/thumb/5/50/CustomizeToolBar_02.png/640px-CustomizeToolBar_02.png)
the Customize window appears
![The Customize window appears](/images/c/c8/CustomizeToolBar_03.png)
2 : select the "Macro" tab
3 : to add a toolbar icon for your macro click the Pixmap button (labelled ... )
![Select a toolbar](/images/6/65/CustomizeToolBar_04.png)
4 : search for an appropriate icon from amongst FreeCAD's existing icons,
5 : or add your own icon by clicking Add icons... (expand for an example)
6 : select your icon and click OK
![Select your icon](/images/7/7b/CustomizeToolBar_07.png)
7 : the icon you selected is now displayed next to the Pixmap button labelled ...
![Your icon is displayed](/images/6/6f/CustomizeToolBar_08.png)
8 : Choose your 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); there are other optional fields for your Button
9 : Click the button Add
![Click the button](/images/d/d2/CustomizeToolBar_09.png)
10 : your button has now been created
![Your button is created](/images/3/30/CustomizeToolBar_10.png)
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 Global toolbar. If your toolbar is docked in this bar, it will always remain visible
![Toolbars tab](/images/3/32/CustomizeToolBar_11.png)
13 : in the dropdown on the left select Macros
![Tab Macros > Macros](/images/6/69/CustomizeToolBar_12.png)
14 : your macro and its icon appears in the list
![Your icon is listed](/images/b/b8/CustomizeToolBar_13.png)
15 : Click the button New... (you can choose your toolbar here and it will be attached to the Part Workbench)
![Click on "New"](/images/6/64/CustomizeToolBar_14.png)
16 : in the window "New Toolbar" enter the name for your toolbar and click OK
![Enter the name for your toolbar](/images/6/6c/CustomizeToolBar_15.png)
17 : your toolbar has now been created - make sure you check its checkbox so that it will actually appear
18 : To add your customized macro to the new toolbar, select it in the left window and then click the Button with the arrow pointing right
![Select your macro](/images/7/78/CustomizeToolBar_16.png)
19 : you have now created a toolbar called "Camera"
20 : click the Close button
![Close](/images/4/41/CustomizeToolBar_17.png)
21 : your new toolbar with its button is now displayed above the active window as well as in the toolbars' right-click menu
![New Toolbar](/images/thumb/a/af/CustomizeToolBar_18.png/640px-CustomizeToolBar_18.png)
22 : enjoy !