labelled-menu-item<%> : interface? | ||
|
(send a-labelled-menu-item get-help-string) |
→ (or/c label-string? false/c) |
When an item has a help, the string may be used to display help information to the user.
See also set-label and get-plain-label.
(send a-labelled-menu-item get-plain-label) → label-string? |
(send a-labelled-menu-item is-enabled?) → boolean? |
See also enable.
A on-demand in menu-item-container<%> method can be overridden in such a way that the container does not call the on-demand method of its items.
Default implementation: Calls the demand-callback procedure that was provided when the object was created.
(send a-labelled-menu-item set-help-string help) → void? |
help : (or/c label-string? false/c) |
If the label contains & and the window is a control, the label is parsed specially; under Windows and X, the character following a & is underlined in the displayed menu to indicate a keyboard mnemonic. Pressing the Alt key with an underlined character from a menu’s name in the menu bar causes the menu to be selected (via on-menu-char). When a menu has the focus, the mnemonic characters are used for navigation without Alt. A && in the label is replaced by a literal (non-navigation) &. Under Mac OS X, &s in the label are parsed in the same way as for X and Windows, but no mnemonic underline is displayed.
A & is always preserved in the label returned by get-label, but never preserved in the label returned by get-plain-label.