| Did you know ... | Search Documentation: |
| Instance variables |
<-pen
is not zero. When graphical<-pen
equals 0, border is only an additional gap.
->border -gapDefaults: The default is 1
-layout |chain|function*<-selection
is restored by menu->restore. If the menu
has menu<-multiple_selection: @off
this is a single value, otherwise it is a chain of values.
The default value may also be a function
object. In this case
menu->restore evaluates this function and
uses the result to set the
menu<-selection.
<->multiple_selection
equals @off.
In this mode, only the selected item is displayed. Used to implement menu<->kind.item(s). The thickness of
the line equals the pen of the menu plus 1.item(s). Used to implement‘Menu menu->kind:
choice’. Note that inverting images gives strange results on
colour displays.<-off_image
left of not-selected items and menu<-on_image
left of selected items. Used to implement menu->kindmarked or toggle`.
-selected -kind-format<->border
is between the item and its surrounding box, while menu<->gap
defines the distance between the surrounding boxes of adjacent items.
-border-label_area -item_sizeMenu?x + Menu?item_offset?x + X*(Menu?item_size?w + Menu?gap?w).
and similar for the y-coordinate.
-label_area -item_offset<-kind
provides the argument of the latest menu->kind
invocation. Note that the menu may look very different due to subsequent
style-parameters changed.
->initialise ->kind -feedback<->show_label
equals @on.
-item_size -item_offset<-show_label
equals @on.<-columns
is greater than 1 and layout is horizontal, the items are
placed in horizontal rows. If layout is vertical, the items
are placed in vertical columns.
-columns<-on_image
and menu<-off_image
equal @nil and
the maximum width plus menu<-border
if one or both of the markers are defined.-menu ->append<->selected.
-selected|{marked}*<->selected: @off.
When @nil, no
image is painted before the item.
-on_image|{marked}*<->selected: @on.
When @nil, no
image is painted before the item.
-off_image-preview_feedback->feedback)->feedback,
but the latter only inverts the item.
-preview<-popup_image
equals @nil or
there is no item in the menu that has a dialog_item<->popup.
Otherwise it is the width of menu<-popup_image
plus
menu<-border.<-label_font
in the box determined by menu<-label_area.
Otherwise the label is invisible.<->font.
The latter is often used for font-selectors to display each item in the
font that will be selected.
-font ->font
-auto_value_align