How to Customize Procedure Templates

Top 

Each procedure template can have multiple default procedures. For example, the Window template can have more than one default procedure--each with its own window design, pre-populated controls and/or control templates, and pre-defined local variables.

Default procedures are customized through the Template Registry.

You can also create and modify templates.

1.

Choose Tools  Edit Template Registry.

The Template Registry lists all registered templates.

2.

Highlight the procedure template to customize, then press the Properties button.

The Template Procedure Properties dialog appears.

3.

Press the Defaults button.

The Edit Default Procedures dialog appears with a list of the default procedures. All of the procedure templates in the shipped with this product have one default procedure each.

4.

Press the Add button.

5.

Provide a name for the new default procedure in the New Procedure dialog, then press OK.

A standard Procedure Properties dialog appears.

6.

Edit the procedure as desired, designing a window, adding controls and/or control templates, adding local variables, etc.

7.

Exit by pressing the appropriate OK or Close buttons.

The next time you add a procedure to an application and select the procedure type, you will be prompted to select the default procedure from which to start.