install_menu( Name, Item_list)where Name is the name of the menu as it appears on the bar and Item_list is a list of choices available for the menu.
Name(Item)is made, where Item is a member of Item_list
Consider the following example, which creates a four item menu with aura initially disabled, and a horizontal separating bar between do-bop and tutu.
install_menu('Miles', [sketches_of_spain, '(aura', amandala, dobop, '(-','tutu/P']).
This is infact equivalent to doing :
install_menu('Miles', ['sketches_of_spain;(aura;amandala;dobop;(-;tutu/P']).
There MUST be a program to deal with the menu also, and must take the general form of :
'Miles'(sketches_of_spain) :- ... code for sketches_of_spain option 'Miles'(aura) :- ... code for aura option etc
Figure 3: The Miles Menu added to the Menu Bar