Templates in the Workbench Classic

Templates are similar to layouts in that they populate your work surface with a specific arrangement of panes. A template gives you compartments in which to open your files; whereas a layout is the arrangement of specific files inside a template. You can use templates to arrange files easily on your work surface, or to add files to the work surface in the arrangement dictated by the template. You can create new templates, and save changes to templates. You work with templates using the Arrange ribbon. To access and use a template:

  1. In the Workbench Classic, select the Arrange ribbon.

  2. From the Templates Gallery, click the template you want to apply to your work surface. If you already have files open, the files will automatically arrange in the template's arrangement.

  3. To open a new file, click the pane where you want the file to open. This makes the pane active.

  4. Select the file from the Project Explorer you want to populate that pane.

  5. Repeat steps 3 and 4 until you have opened the files you want opened.

  6. When the panes are populated, use the Save As command to save the display as a new project with the name and at the path location you desire.

Working with Templates

The Arrange ribbon contains the commands needed to open, save, and apply templates. Click the down arrow to display the list of the commands that are available.

 

Click to open a standard Open file dialog box that allows you to select WBTX Workbench Classic template file. The drop-down menu lists the last five template files that have been opened. You can also use the Open command on the File menu for this purpose.

 

The Save button saves the current display and any changes you made to the template file. This function is duplicated in the Templates Gallery menu. Use the Save command on the File menu for the same effect.

 

The Save As button saves the current display as a template file with a name you supply. The position and configuration is saved, but the contents of the panes are not. This duplicates the action of the Save As command on the File menu.

The Template Editor button opens a dialog box that allows you to create new templates of your own design.

 

Templates are stored as Workbench Classic template files with a file extension of .WBTX. You can import template files and add them to the Templates Gallery using the Import Templates to Gallery command. Should you want to return the gallery to the default state you can use the Reset Gallery to Template command. You can also remove all templates from the gallery using the Remove All Templates from the Gallery command. To create a new template or edit an existing template you open and work with the Template Editor, which is described in the section below.

Create a Template

You can have and use any number of templates, either based on the ones you see in the Templates Gallery or by creating a new template from scratch. The Template Editor is a designer in which you can alter the configuration and properties of a template and save those changes to a new file.

  1. On the Arrange tab, click the Template Editor button. The Template dialog box opens.

  2. Click the New Template button to start with a blank template (if you are editing an existing template).

  3. Click the Split Selected Panels Horizontally button to create the first pane.

  4. Click either the Split Selected Panels Horizontally button or the Split Selected Panels Vertically button to create a set of panes. These two commands are also found in the Edit menu. Click here for an example.

  5. To resize a pane click on its border and drag it.

  6. To make panes side by side of equal width, hold the Ctrl key and click on each pane; then click the Make Selected Panels of the Same Width button .

  7. To make vertically stacked panes of equal height, hold the Ctrl key and click on each pane; then click the Make Selected Panels of the Same Vertically button .

  8. To delete a pane select it and click the Delete Selected Panel button , or select Delete from the Edit menu.

  9. To save your template to a file, click the Save Current Template button , give it a file name and locate it where you desire.

  10. Close the Template dialog box when you are done.

See also:

Workbench Classic User Interface