These pages are auto-generated from self-documenting comments embedded in class files.
For more information on breve and steve, refer to the breve homepage.

## Abstract : MenuItem

This class is included as part of the file MenuItem.tz.
To use this class in a simulation, include the line "@use MenuItem."

### Class description:

> The MenuItem class holds menu items associated with objects. Menus can be associated with Mobile objects, in which case they are shown as contextual menu items, or associated with Control objects in which case they are shown under the global application menu.

### Class methods:

> - check
> - create-menu
> - disable
> - enable
> - uncheck

`check`

> Places a check mark next to the menu item.

`create-menu named menuName (string) for-object theObject (object) for-method methodName (string)`

> This method initializes a menu item with title menuName for theObject which will call methodName when selected.

`disable`

> Disables the menu item such that it cannot be selected.

`enable`

> Enables a menu item, if it is disabled.

`uncheck`

> Removes the check mark next to the menu item, if it exists.

Documentation created Thu Jul 3 18:18:12 2008