Release 10.1A: OpenEdge Development:
AppBuilder

> ## Adding a SmartObject to a palette button pop-up menu

> Use this type of entry to add an object to the Object Palette’s pop-up menu for an object type. The new object you define also appears in the Object Palette’s submenu for the object type. This type of entry also allows you to select an object without first using the Choose dialog box. Before you create this type of entry, make sure that you have created the object type (see the "Adding a button to the Object Palette" section):

> Syntax
>     *smartobject-type    name
>     {   USE master-file
>        | DIRECTORY-LIST list FILTER filter TITLE title
>     }

> ``*smartobject-type``

> Specifies the name of an existing object type.

> ``name``

> Specifies the name of the object as it appears on the Object Palette’s menus.

> `USE `master-file``

> Specifies the name of the SmartObject master file to instantiate when `name` is selected from the Object Palette:

> `DIRECTORY-LIST `list``

> Specifies the directories that appear in the Choose dialog box for `smartobject-type`.

> `FILTER `filter``

> Specifies a comma-separated list of file search masks that appears in the Choose dialog box for the current directory.

> `TITLE `title``

> Specifies the title for the Choose dialog box for `smartobject-type`.

> The sample entries in Figure C–2 add SmartObject masters from `src/template/smart.cst`.

> Figure C–2: Sample entries for adding a SmartObject master

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