Add MenuItem Command


add menuItem <item> to [<submenu> of] menu
<menu_name> Applies to menus


The add menuItem command adds the specified element <item> to the end of a menu or submenu. Each item may contain up to 31 characters. The following list summarizes the special characters that can be used when adding a menu item: Character: ( Meaning: Item created disabled Example: "(Next" Character: / Meaning: Acclerator key to follow Example: "Delete/D" Character: & Meaning: Character key equivalent to follow (MS-Windows only) Example: "&Previous" or "Pr&evious" Character: ; Meaning: Multiple items created Example: "First;Last;Recent"


You can add duplicate entries to a menu, but only the first entry can be affected by other scripting elements such as enable and disable. You cannot create your own File or Edit menus, nor can you delete or modify anything on the existing File or Edit menus. Once created, a submenu cannot be deleted unless the top-level menu item to which it is attached is deleted, or you reset the menuItems property. Character keys are used in Windows. Accelerator keys are used on both the Windows and Macintosh platforms.



Type the following in the Message box and press Enter after each: create menu "Colors" add menuItem "Blue" to menu "Colors"
This text has been mechanically extracted from the Oracle Media Objects MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.