Menu() FunctionDisplays a Popup menu. Syntax:Menu(id) Parameters: id - Identifier of a popup menu to display. Remarks: The menu id referenced in this function must be defined in the toolbar source. Referer top the Menu Section for more information. Example: <XML id="toolbar"> <toolbar caption="Menu() Example"> <control type="toolbar"> <button caption="Open Menu" style=dropdown action="Menu(mymenu)"></button> </control> <menudefinitions> <menu id="mymenu"> <option caption="Home Page" action="http://www.trellian.com"></option> <option caption="Order" action="http://www.trellian.com/order.htm"></option> </menu> <menudefinitions> </toolbar> </XML> In this example a toolbar with a single button is created. When clicked, the Menu() functions displays a popup menu with the id mymenu. The popup menu to be displayed is defined in the menudefinitions block. |