Instance Method

setDocument

Associates a document with a menu item.

Declaration

void setDocument(in Document document, in Object menuItem);

Parameters

document

The TVML file to be associated with the menu item.

menuItem

The selected menu item.

See Also

Setting and Retrieving Menu Item Documents

getDocument

Retrieves the document associated with the specified menu item.

getSelectedItem

Retrieves the menu item in the menu bar that is currently in focus.

setSelectedItem

Sets the focus in a menu bar to the specified menu item.