| 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.
->feedback
sets menu->kind,
keeping menu->multiple_selection:
->kind->kind->kind
-kind->focus_item.-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_offsettoggle for a marked
menu with menu<-multiple_selection @on.
->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.
-columnsmarked
menu and for the padding of the segments of a choice menu.cycle menu, or @nil
(default) for no maximum. If the selected value does not fit, it ends in
an ellipsis (…) and
menu<-ellipsized_label
returns the full label, which
library(help_message) shows as tooltip. The list that opens
when clicking the menu shows the values in full. This allows for a menu
with many long values, such as font families, without making the dialog
very wide.
<-value_width-menu ->append<->selected.
A marked menu shows radio buttons if @off
and check boxes if @on.
A cycle menu always has a single selection.
If @on, Alt-click or double-click on an item selects only this item. Doing so again on this item while it is the only one selected restores the selection from before. The message of the menu is called as for a click on the item.
-selected|{marked}*marked menu that have
MenuItem<->selected: @off.
When marked (default), this is a radio button or check box
drawn in the theme colours. When @nil,
nothing is painted before the item.
-on_image|{marked}*marked menu that have
MenuItem<->selected: @on.
When marked (default), this is a radio button or check box
drawn in the theme colours; in a popup it is a check mark. When @nil,
nothing is painted before the item.
-off_image-preview_feedback->feedback)->feedback,
but the latter only inverts the item.
-preview<->popup.
Otherwise it is the width of the pullright marker 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