When argument is an instance of class popup,
create a menu_item from the
graphical<-name
and relate the popup with this menu_item using (menu_item->popup
and popup->context). This conversion
allows simple specification of pull-right menus:
new(P, popup(attributes)),
new(C, popup(colour)),
new(F, popup(font)),
send_list(C, append, [...]), % fill sub-popups here
send_list(F, append, [...]),
send_list(P, append, [C, F]). % associate as pullright
When the argument is not a popup, menu_item<-convert
will create a menu-item using the argument as a value and leaving all
other menu_item->initialise
parameters @default.
- See also
- - menu_item
->initialise
- menu_item-popup
- menu->append