Disable MenuItem Command
For menu items:
disable menuItem <item> of [menu
<submenu_name> of] menu <menu_name>
disable menu <menu_name>
The disable menuItem command makes the specified menu item unselectable, or dimmed. If the target is a menu, the disable menuItem command disables every menu item and, on the Macintosh only, the menu itself. The disable menuItem command applies only to user-defined menus.
A menu item can be created disabled when setting the menuItems property. Place an open parenthesis before the name of the item to create it disabled.
Enter the following statements in the Message Box and press Enter after each:
create menu "Colors"
add menuItem "Transparent" to "Colors"
To disable the menu item, type the following in the Message Box and press Enter:
This text has been mechanically extracted from the Oracle Media Objects 184.108.40.206 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.