menuitems(
ITEMS
)

The menuitems( function converts a semicolon separated array into a live menu specification.


Parameters

This function has one parameter:

items – array of menu items, separated by semicolons.


Description

This function converts a semicolon separated array into a Custom Menu specification. Any semicolons in the text are turned into carriage returns, while ¬ (Option-L) characters are turned into tabs.

menuitems("(File);New¬/N;Open¬/O;Close¬/W;Save¬/S;Save As...(-;Page Setup...;Print...;/P")

The menuitems( function provides a simple way to quickly build up a menu, but we recommend using multiple menuitem( functions instead. The menuitem( function gives you much more control over the individual menu options, without having to use special “magic” characters like / and ¬. Here is the same example implemented with the menu(, menuitem( and menuseparator( functions.

menu("File")+
    menuitem("New","Key","N")+
    menuitem("Open","Key","O")+
    menuitem("Close","Key","W")+
    menuitem("Save","Key","S")+
    menuitem("Save As...")+
    menuseparator()+
    menuitem("Page Setup...")+
    menuitem("Print...","Key","P")

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0