next up previous
Next: the Fruits menu - Up: No Title Previous: Window Management in MacProlog

Menu's and Sub-Menus

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

  figure108
Figure 3: The Miles Menu added to the Menu Bar

  figure113
Figure 4: The Miles Menu





Omer F Rana
Wed Feb 26 11:00:38 GMT 1997