Pop-Up Menus
by David Miller

This program demonstrates a set of routines which enable pop-up menus to be used easily from within non-Wimp programs.

When run, the program pops up a simple two-level menu structure. Click Select on an entry to choose it or to obtain its submenu. Click Adjust to return to the previous level or to cancel the menu.

To use the menus from within your own programs, copy all the functions from the Basic program !Menus.!RunImage into you own program. At the beginning of the program, PROCmenu_init should be called with the data pointer pointing at the DATA statements containing the menu structure. This reserves enough sprite memory for the menu system and copies the menu structures into menu$(). To use a particular menu, use FNmenu(menu$(n),0).

Refer to magazine for more details.
