Please enable JavaScript to view this site.

ESL Documentation

Definition

Group a number of items under one identifier.

item class ITEM_CLASS_NAME

[is ITEM_NAME [from AB_NAME] ] ...

ITEM_CLASS_NAME

The identifier for a class of items.

ITEM_NAME

The identifier for a pulldown, button, choice, or separator.

from AB_NAME

The identifier for an action bar template. You must specify the action bar name if more than one template contains an item of the given name. You cannot specify it if the item was defined outside of an action bar template. In ESL for Windows, only those regions that are children of the desktop can have action bars.

Description

Use this statement to group a number of items under one identifier. This allows you to specify one action statement or one response definition for a group of items.

An item class can only contain items.

An item class is always referenced with the word item before the word class.

All the items in the item class definition must have been previously defined in the program. The class can be initially null.

You cannot define a class as a member of another class; only individual items can be defined as class members.

An item can be a member of more than one class.

Once a class is defined, you can reference it in any action statement that is valid for an item. When the actions are executed, they will affect all the items in the class. Also, you can define a response to the class, and the response will be invoked by any of the items in the class.

Example

item class AllItemClass

item class FileClass is

Open

Save

Exit

item class ItemClass is

Open from Master_ActionBar

Save from Master_ActionBar

Exit from Master_ActionBar

See Also

add item to item class Action Statement

delete item from item class Action Statement