Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase

Model Technology Inc.


enable_menuitem

The enable_menuitem command enables a previously-disabled menu item. The menu item will be changed from grayed-out to normal, and will become responsive. Returns nothing.

Syntax

enable_menuitem

<window_name> <menu_path> <label>

Arguments

<window_name>

Tk path of the window containing the menu. Required.

Note that the path for the Main window must be expressed as "". All other window pathnames begin with a period (.) as shown in the example below.

<menu_path>

Name of the Tk menu-widget path. The path may include a submenu as shown in the example below. Required.

<label>

Menu item text. Required.

Examples

enable_menuitem .mywindow file.save "Save Results As..."

This command locates the mywindow window, and enables the previously-disabled Save Results As... menu item in the save submenu of the file menu.

See also

add_menuitem, disable_menuitem


Model Technology Inc.
Model Technology Incorporated
Voice: (503) 641-1340
Fax: (503)526-5410
www.model.com
sales@model.com
Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase