Progress
AppBuilder
Developer’s Guide


Adding a New Template

This type of entry allows you to define your own template, whose name appears in the New dialog box:

SYNTAX
{     *NEW-CONTAINER
   |  *NEW-SMARTOBJECT TYPE name
   |  *NEW-PROCEDURE
} template-name
NEW-TEMPLATE template-file 

*NEW-CONTAINER

Specifies that the template appears in the New dialog box when the Containers toggle box is selected. A container is a either a window, a dialog box, or a SmartContainer.

*NEW-SMARTOBJECT

Specifies that the template appears in the New dialog box when the SmartObjects toggle box is selected.

TYPE name

Specifies the type of SmartObject. AppBuilder uses this value to determine whether to connect a database when the particular type of SmartObject is created.

*NEW-PROCEDURE

Specifies that the template appears in the New dialog box when the Procedures toggle box is selected. A procedure can be either a structured procedure file, a structured include file, or a method library.

template-name

Specifies the name of the template as it appears in the New dialog box.

NEW-TEMPLATE template-file

Specifies the pathname of the template file that AppBuilder opens when you select the template from the New dialog box.

The sample entries in Figure C–3 define New templates.

Figure C–3: Sample Entries for New Templates


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095