Sent to the current card
The setUpMenus message is generated when the user pulls down an Oracle Media Objects menu. With a setUpMenus handler, the developer can dynamically change the appearance or contents of a user-defined menu.
Excessive use of the setUpMenus message may lead to menu performance degradation.
Quotes are stripped out of custom menus and menu items.
This example demonstrates how to create a dynamic menu that lists all of the objects on the current card. When an object is selected from the menu, the script editing window of the object is invoked.
create menu "Objects"
Then, add the following handlers to the stack script:
this card then
put empty into the_Objects
in this card
g_current_card end if
on doMenu menu_item, menu_name if menu_name is "Objects" then
This text has been mechanically extracted from the Oracle Media Objects 22.214.171.124 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.