MCGetMenuString
If your application has a non-standard Edit menu, you can use theMCGetMenuStringfunction together with theMCGetControllerInfofunction to assign names correctly to the items in your application's Edit menu.
pascal ComponentResult MCGetMenuString (MovieController mc, long modifiers, short item, Str255 aString);
mc- Specifies the movie controller for this operation. You obtain this identifier from the Component Manager's
OpenComponentorOpenDefaultComponentfunction, or from theNewMovieControllerfunction.modifiers- Indicates the current modifiers from the mouse-down or key-down event to which you are responding.
item- Contains one of the appropriate movie controller Edit menu constants returned in the
aStringparameter.aString- Contains (on return) an appropriate string to set the menu item text. The following flags are available:
mcMenuUndo- Contains the string to set the menu item text to the Undo command.
mcMenuCut- Contains the string to set the menu item text to the Cut command.
mcMenuCopy- Contains the string to set the menu item text to the Copy command.
mcMenuPaste- Contains the string to set the menu item text to the Paste command.
mcMenuClear- Contains the string to set the menu item text to the Clear command.
DESCRIPTION
TheMCGetMenuStringfunction is used by theMCSetUpEditMenufunction, which is described in the previous section.SEE ALSO
To highlight menu items, use theMCGetControllerInfofunction, which is described on page 2-48, to determine which items should be enabled.