Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase

Model Technology Inc.


disable_menuitem

The disable_menuitem command disables a specified menu item within the specified menu_path of the specified window. The menu item will become grayed-out, and nonresponsive. Returns nothing.

Syntax

disable_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

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

This command locates the mywindow window, and disables the Save Results As... menu item in the save submenu of the file menu.

See also

add_menuitem, enable_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