Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map | Donate

Barry MacDonnell's
Toolbox for WordPerfect

Macros, tips, and templates for Corel® WordPerfect® for Windows®
© Copyright 1996-2017 by Barry MacDonnell. All Rights Reserved.

Page updated Nov 4, 2016

WordPerfect Tips
Main tips page | Browse tips

How to create a new, custom toolbar

Tips -

Create a vertical toolbar

Move or copy buttons from another toolbar

Make a custom toolbar  or keyboard automatically appear when you load a document 

Modify a toolbar button's icon image; delete a button; restore a modified toolbar to factory settings; re-position a toolbar

Related pages -

To just modify a standard toolbar, see:
How to create a toolbar button to play a macro, load a program, or use a built-in WordPerfect feature

To modify just a property bar:
Adding buttons to the context-sensitive Property Bars

To edit the icon on a toolbar or property bar button:
How to change those default "audiocassette" icons on toolbar buttons


•  To be able to see toolbars you must have enabled them with View, Toolbars.

•  Toolbars are stored inside the template file. Typically this is the default template but it can also be a custom template or the additional objects template.

Here's how

  • Click on Tools, Settings, Customize, Toolbars (tab).
  • Next, click on Create to bring up the Create Toolbar dialog.
  • Give the new toolbar a name in the dialog. 
    • Optional: While in that dialog, you can click the Location button to specify the location -- typically, the current template or the default template (which may be the same item); some users, particularly in a multi-user networked environment, might want to use the Additional Objects template.
  • Click OK to close the Create Toolbar dialog.
  • The Toolbar Editor dialog should now be on screen with the name of your new toolbar at the top of the dialog.
  • Modify the new toolbar with buttons that activate favorite features, play macros, etc.:

To add a feature to the toolbar: The Features tab at the top should be active (if it is not, click it). You will find several "Feature categories" in the top drop list (File, Edit, View ... etc.). Underneath this list you will see the actual "Features:" drop list, which displays the features available for the chosen Feature category.

Clicking on a feature will activate the Add Button button on the dialog and also display an icon and brief description just above the OK button. (These button icons are also useful as models for your own custom buttons to play macros from a toolbar. See http://wptoolbox.com/tips/EditIcon.html.)

Practice a bit: Select a feature and click the Add Button button. You will see a new button appear on the new toolbar. If you do not want the button, simply drag it form the toolbar. (You can also remove it later by holding down the <Alt> button while you drag it from the toolbar. Similarly, you can reposition it later on the toolbar with the <Alt>+drag method.)

You can add macros or even external programs to the toolbar: This is done by first selecting the appropriate tab (Macros or Programs) on the Toolbar Editor. Then choose the macro or external program and click the Add button to add it.

For more information on these topics, see "How to create a toolbar button to play a macro, load a program, or use a built-in WordPerfect feature" at http://wptoolbox.com/tips/CreateTB.html.

  • When finished adding buttons to the new toolbar, click OK. If you want to enable the toolbar, the box next to its name must be ticked (i.e., checked).
  • Click Close to get back to the document screen. 

You can always modify the new toolbar later by choosing Tools, Settings, Customize, Toolbars (tab); then click once on the toolbar name to select (highlight) it; then click Edit. -Or- click Options set Button appearance, Font size, Toolbar location (left/right/top/bottom/(floating)palette), etc.

See more tips below.


Blue bullet You can create a vertical toolbar with text labels (instead of graphic icons) to quickly access your favorite folders, templates, and files. See How to Create a Vertical Toolbar with Text Buttons to Access Your Favorite Folders, Templates and Files (a PDF document; 08/27/07, 140Kb).

Blue bullet You can copy or move buttons from one toolbar to another toolbar -- or even copy a complete custom toolbar from an earlier version of WordPerfect or from a version located on another system.

First ... what do you want to do?

¤  The procedure below in Step 1 can be used to firstcopy the toolbar to your current version of WordPerfect. (This is done when the toolbar exists on another WordPerfect installation.) Then you can optionally move or copy the button(s) to another toolbar using the procedure in Step 2 below.

¤  If you just want to copy buttons from one toolbar to another in the same program on the same computer, see Step 2.

¤  For buttons that play macros located on your disk, you might have to edit the newly moved/copied toolbar button with the Toolbar Editor to specify the path to the related macro on the system.

¤  Advanced users can accomplish the steps under Step 1 below with a simple macro containing two commands:

(1) the TemplateCopyObject() command [to specify the path and name of the source template to copy the toolbar from; the ButtonBar! as the object type; and the name given to the source toolbar]; and

(2) the ButtonBarShow() command [to display the copied toolbar].

Note that TemplateCopyObject() can also be used to copy template macros from one template into another.

Step 1. Copying toolbars from another version of WordPerfect or from another computer with WordPerfect installed on it.
[From: " Moving customizations from old default template to new" at http://www.wpuniverse.com/vb/showthread.php?threadid=12507]

"... In WordPerfect when you edit some user settings, like a keyboard or a menu (there are others), the customizations are saved in the default template. If you want to keep your customizations when you install a new version or when for troubleshooting you are asked to exit WordPerfect and rename the default template (a new fresh one is created when you restart WP), you need to copy the customizations (if any) from the old template to the new default template."

•  Locate the current default template (i.e., the template that is the source of the toolbars you wish to copy)

To locate it: See Default template.

•  Make a renamed copy of this template and move it into the same folder as the target program's default template (as shown in its Tools, Settings, Files, Template tab)

Close WordPerfect. Use My Computer or Windows Explorer to navigate to the source default template.

Copy the source default template file to a temporary folder, and rename it to something like WP-OLD.wpt. (Be sure the filename extension is .wpt).

Then copy or move the renamed file into the folder specified in the target version of WordPerfect (as shown in its Tools, Settings, Files, Template tab).

•  Copy the "objects" from the old template to the new

    • Start the target version of WordPerfect.
    • Click File, New from Project.
    • In the drop down list, select Custom WP Templates.
    • Right click on each listing for Create a blank document, select project properties, check the project filename, when you have determined which one says WP-OLD.wpt, click once to select the file.
    • Click Options, Edit WP Template.
    • Click Copy/Remove Object on the Template Toolbar.
    • In "Templates to copy from" section, select your renamed file (WP-OLD.WPT). ... On the left side the old template will be listed and on the right side the new WP template will be listed. On the left side there is a section called "Object type" this list the different categories from the template file. (Toolbars, Keyboards, Macros etc..)
    • Select a Object type [i.e., Toolbars], then select an item you want to move to the new template and click on the Copy button.
    • Repeat the process until all the customized items are transferred to the new template. When finished click on the Close button.
    • Close and re-launch WordPerfect.
    • Display the new toolbar(s) with Tools, Settings, Customize, Toolbars tab. Check (tick) the toolbar(s) to display.
N.B.: For buttons that play macros on disk, you might have to edit the newly moved/copied toolbar button with the Toolbar Editor to specify the path to the related macro on the current system.

Step 2. Moving or copying buttons from one toolbar to another on the same installation of the WordPerfect program

•  You can move or copy an existing button from one toolbar to another toolbar (assuming both bars are visible; if not, use Tools, Settings, Customize, Toolbars tab to enable their display on screen). [Tip: You can even copy a button to a property bar; see here.]

    • To move it, hold down the <Alt> key while you drag the button to the desired location on other toolbar.

    • To copy it, hold down the <Ctrl> and <Alt> keys while you drag it.

Note: Most people probably will want to copy the button, not move it, so that the source toolbar remains the same.

Blue bullet You can make a custom toolbar (or keyboard) appear whenever you load a new document based on a custom template (e.g., a letterhead or invoice template). [You can also make them appear immediately; see Tips below.]

[The following information is valid for WordPerfect X3+ (but should also work in other versions).]

You will need to create the toolbar inside the custom template (or copy it there) as described above and then create a small template macro that is triggered by the Post New trigger. (N.B.: This and other aspects of automating templates can be found in the author's Automating WordPerfect Templates.) 

The macro would consist of these two ButtonBar commands [where "My Toolbar" should be replaced by the actual custom toolbar name (retain the quote marks), and each command is on its own line -- but note that you might not need both commands to load the new toolbar]:

ButtonBarSelect(ButtonBarName:"My Toolbar"; LoadedFromDefaultTemplate:No!)

ButtonBarShow(State:On!; ButtonBarName:"My Toolbar"; LoadedFromDefaultTemplate:No!)


☼  You can also use the one-line KeyboardSelect command in a template macro to load a custom keyboard definition.

For example (N.B.: be sure to replace "<My custom toolbar>" with the name of your custom keyboard definition, and retain the < > brackets and quote marks):

KeyboardSelect (Keyboard:"<My custom keyboard>"; LoadedFromDefaultTemplate:No!)

☼  You can also use these commands immediately and directly -- you don't need to trigger a template macro to use them. Just create them in a regular macro and assign the macro to a toolbar button, menu, or keyboard shortcut (see here).


The parameter LoadedFromDefaultTemplate should be set to No! if the item is to be loaded from the custom template, and set to Yes! if it is to be loaded from the default template. Since we are talking here about using a custom template to store (and trigger) the macros, the examples above use No!.

Related Tips

  • To modify a button's default icon (the gray audiocasette image), click here.
  • If you put an ampersand ("&") in the Button Text, the letter that folllows the ampersand can be used with the <Alt> key to play the macro, in addition to clicking the toolbar button itself. For example, if the Button Text is something like "Fax this document," and you change it to "&Fax this document," then <Alt+F> will play the macro, the same as if you click the button with your mouse. Note that, in this example, <Alt+F> would normally bring up the WP File menu; now it will not. So, to bring up the File menu, simply press and release the <Alt> key, then press the <F> key. [Thanks to P. Wolfgang Deiminger for the ampersand tip.]
  • To delete a button from the toolbar (or a property bar) when you are back in the document window, simply hold down the <Alt> key and drag the button off the bar.
  • To restore a modified factory toolbar to the factory settings:
    • Right-click on the toolbar and choose Settings. Select the bar in the list if it isn't already selected. Click Reset.
    • Note that custom toolbars created from scratch can only be modified or deleted.
  • If you want to create a button on one of WP's context-sensitive property bars, and it seems to disappear whenever you need it, see "Adding buttons to the context-sensitive Property Bars".
  • To re-position a toolbar:
    • You can use the quick and easy way: Place your mouse cursor on an empty area or border (not on a button) on the toolbar and left-click-and-drag the toolbar to a new location: left, right, top, bottom, or palette ("floating"). When its border changes from a thick to a thin line -- a "ghost" outline of the bar's shape (except for the palette, which will always be a rectangle with a thick border) -- release your mouse button and the toolbar should snap into that location. Later, you can drag it back to the main toolbar area to relocate it back in its default position. (If this proves difficult or tricky, use the dialog method below.)

      - or -

    • Use the dialog method: Click Tools, Settings, Customize -- or simply right-click on the toolbar and choose Settings.
    • In the Customize Settings dialog that appears, click on the Toolbars tab and then use your mouse to choose (i.e., reverse highlight the name of) the toolbar. 
    • Click the Options button. Make your choice of location, etc., on the Toolbar Options dialog. [As in the quick method above, "Palette" creates a floating toolbar that you can drag to a different position. If you drag it back over its typical location -- the border will change from a thick to a thin line when it can be docked -- and then release your mouse button, it should snap into that location.]
    • Click OK to close the Toolbar Options dialog, then Close to return to the document.
    • To position it back in its original location, repeat the above steps and choose the newly desired location on that Options dialog. [Tip: For the Palette (floating) toolbar you can double click on its title bar and it should snap back into its original location. (Thanks to Roy "lemoto" Lewis for this tip.)]