CustomMenu
Last updated at 4:52 pm UTC on 16 January 2006
Example
(CustomMenu fromArray:
#( ('apples' #('McIntosh' 'Granny Smith') )
('oranges' #('RubyRed') )
-
-
('peaches' #('Georgia' 'Golden') )
-
('pears' #('a' 'b' 'c') )
-))
startUp: #apples
Presents a menu of the first items in the parenthesized list; answers the second object in the corresponding list. For example, the above code puts up a menu with 'apples', 'oranges', 'peaches', 'pears'.
If peaches is selected then the array #('Georgia' 'Golden') is answered.
Also see Morph menus Popup Menus Menus perform:orSendTo: