Customize Toolbars: Difference between revisions
mNo edit summary |
(Corrected english) |
||
Line 17: | Line 17: | ||
<!--T:6--> |
<!--T:6--> |
||
or right click on any toolbar |
|||
or put you on a Toolbar and click the right mouse button |
|||
<!--T:7--> |
<!--T:7--> |
||
[[File:CustomizeToolBar 02.png|640px|center| |
[[File:CustomizeToolBar 02.png|640px|center|Right mouse click]] |
||
{{clear}} |
{{clear}} |
||
<!--T:8--> |
<!--T:8--> |
||
the |
the Customize window appears |
||
<!--T:9--> |
<!--T:9--> |
||
[[File:CustomizeToolBar 03.png|640px|center|The |
[[File:CustomizeToolBar 03.png|640px|center|The Customize window appears]] |
||
{{clear}} |
{{clear}} |
||
<!--T:10--> |
<!--T:10--> |
||
'''2''' : select the |
'''2''' : select the "Macro" tab |
||
<!--T:11--> |
<!--T:11--> |
||
'''3''' : to |
'''3''' : to add a toolbar icon for your macro click the Pixmap button (labelled {{KEY|... }}) |
||
<!--T:12--> |
<!--T:12--> |
||
[[File:CustomizeToolBar 04.png|640px|center|Select |
[[File:CustomizeToolBar 04.png|640px|center|Select a toolbar]] |
||
{{clear}} |
{{clear}} |
||
<!--T:13--> |
<!--T:13--> |
||
'''4''' : search for an icon amongst |
'''4''' : search for an appropriate icon from amongst FreeCAD's existing icons, |
||
<!--T:47--> |
<!--T:47--> |
||
Line 47: | Line 47: | ||
<!--T:48--> |
<!--T:48--> |
||
'''5''' : |
'''5''' : or add your own icon by clicking {{KEY|Add icons...}} (expand for an example) |
||
<!--T:49--> |
<!--T:49--> |
||
Line 57: | Line 57: | ||
<!--T:15--> |
<!--T:15--> |
||
'''5b''' : you will get a file selection window, select your image file |
'''5b''' : you will get a file selection window, select your custom image file (PNG format, 64x64 pixels) |
||
<!--T:16--> |
<!--T:16--> |
||
Line 68: | Line 68: | ||
<!--T:17--> |
<!--T:17--> |
||
'''6''' : select your icon and click |
'''6''' : select your icon and click {{KEY|OK}} |
||
<!--T:18--> |
<!--T:18--> |
||
Line 92: | Line 92: | ||
<!--T:24--> |
<!--T:24--> |
||
'''10''' : your button |
'''10''' : your button has now been created |
||
<!--T:25--> |
<!--T:25--> |
||
Line 99: | Line 99: | ||
<!--T:26--> |
<!--T:26--> |
||
'''11''' : create a |
'''11''' : create a toolbar for the button |
||
<!--T:27--> |
<!--T:27--> |
||
'''12''' : |
'''12''' : go to the '''Toolbars''' tab and choose your workbench in the drop down on the right ('''Part''' in this example) |
||
<!--T:51--> |
<!--T:51--> |
||
Since version 0.15 there is a {{KEY|[[File:Freecad.svg|16px]] Global }} toolbar. If your toolbar is |
Since version 0.15 there is a {{KEY|[[File:Freecad.svg|16px]] Global }} toolbar. If your toolbar is docked in this bar, it will always remain visible |
||
<!--T:28--> |
<!--T:28--> |
||
[[File:CustomizeToolBar 11.png|640px|center| |
[[File:CustomizeToolBar 11.png|640px|center|Toolbars tab]] |
||
{{clear}} |
{{clear}} |
||
<!--T:29--> |
<!--T:29--> |
||
'''13''' : in |
'''13''' : in the dropdown on the left select '''Macros''' |
||
<!--T:30--> |
<!--T:30--> |
||
Line 119: | Line 119: | ||
<!--T:31--> |
<!--T:31--> |
||
'''14''' : |
'''14''' : your macro and its icon appears in the list |
||
<!--T:32--> |
<!--T:32--> |
||
[[File:CustomizeToolBar 13.png|640px|center|Your icon |
[[File:CustomizeToolBar 13.png|640px|center|Your icon is listed]] |
||
{{clear}} |
{{clear}} |
||
<!--T:33--> |
<!--T:33--> |
||
'''15''' : Click the button {{KEY|New...}} (you can choose your |
'''15''' : Click the button {{KEY|New...}} (you can choose your toolbar here and it will be attached to the Part Workbench) |
||
<!--T:34--> |
<!--T:34--> |
||
[[File:CustomizeToolBar 14.png|640px|center|Click |
[[File:CustomizeToolBar 14.png|640px|center|Click on "New"]] |
||
{{clear}} |
{{clear}} |
||
<!--T:35--> |
<!--T:35--> |
||
'''16''' : in the window "New Toolbar" enter the name for your |
'''16''' : in the window "New Toolbar" enter the name for your toolbar and click {{KEY|OK}} |
||
<!--T:36--> |
<!--T:36--> |
||
[[File:CustomizeToolBar 15.png|640px|center|Enter the name for your |
[[File:CustomizeToolBar 15.png|640px|center|Enter the name for your toolbar]] |
||
{{clear}} |
{{clear}} |
||
<!--T:37--> |
<!--T:37--> |
||
'''17''' : your |
'''17''' : your toolbar has now been created - make sure you check its checkbox so that it will actually appear |
||
<!--T:38--> |
<!--T:38--> |
||
'''18''' : |
'''18''' : To add your customized macro to the new toolbar, select it in the left window and then click the {{KEY|Button}} with the arrow pointing right |
||
<!--T:39--> |
<!--T:39--> |
||
Line 160: | Line 160: | ||
<!--T:43--> |
<!--T:43--> |
||
'''21''' : your new |
'''21''' : your new toolbar with its button is now displayed above the active window as well as in the toolbars' right-click menu |
||
<!--T:44--> |
<!--T:44--> |
Revision as of 10:45, 24 November 2016
Tutorial |
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
or right click on any toolbar
the Customize window appears
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,
5 : or add your own icon by clicking Add icons... (expand for an example)
5b : you will get a file selection window, select your custom image file (PNG format, 64x64 pixels)
6 : select your icon and click OK
7 : the icon you selected is now displayed next to the Pixmap button labelled ...
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
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 Global 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 New... (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 OK
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
19 : you have now created a toolbar called "Camera"
20 : click the Close button
21 : your new toolbar with its button is now displayed above the active window as well as in the toolbars' right-click menu
22 : enjoy !