| Did you know ... | Search Documentation: |
| Get methods |
<-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.
->initialise -popup ->append|image<-initialise when the
label argument is @default.
It performs the following steps:
->draw_in
to draw the graphical in the image.<-label_name
to map the word-separator (default’_’, see pce->syntax)
to a space and capitalise all the words.<-name yields a
name, call
char_array<-label_name
on it and return the result.To realise multi-language support, one might wish to redefine this method yielding labels in the user's preferred language from internal program names.
<-label_name ->initialise -value -label