Please enable JavaScript to view this site.

ESL Documentation

Action Statement

Add an existing item, or a class of items, to a class of items.

add item {ITEM_NAME [from AB_NAME]|ITEM_CLS_NAME}

to item class ITEM_CLS_NAME

ITEM_NAME

The identifier for an item.

AB_NAME

The identifier for an action bar template. The action bar name must be specified if more than one template contains an item of the given name. It cannot be specified if the item was defined outside of an action bar template.

ITEM_CLS_NAME

The identifier for a class of items.

Description

When you use the identifier ITEM_CLS_NAME, the items in that class are added, not the class itself.

You can add standalone items or template items to an item class. You cannot add items from a particular region.

The item, or class of items, that is being added must already exist; it may have been previously defined, or it may have been previously created during runtime using the add action statement. An item can be a member of many classes simultaneously. Adding an item to one class has no effect on the item's membership in other classes.

Example

 

...

item class File_Options

 

response to Reset

 add item Open from Main_Window_AB

  to item class File_Options

...

See Also

add Action Statement

item class Definition

delete item from item class Action Statement