| ||
|
method
(send a-labelled-menu-item get-help-string)
→ (or/c label-string? #f)
When an item has a help, the string may be used to display help information to the user.
method
(send a-labelled-menu-item get-label) → label-string?
See also set-label and get-plain-label.
method
(send a-labelled-menu-item get-plain-label) → label-string?
method
(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.
method
(send a-labelled-menu-item set-help-string help) → void?
help : (or/c label-string? #f)
method
label : label-string?
If the label contains & and the window is a control, the label is parsed specially; on Windows and Unix, 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) &. On Mac OS, &s in the label are parsed in the same way as for Unix and Windows, but no mnemonic underline is displayed. On Mac OS, a parenthesized mnemonic character is removed (along with any surrounding space) before the label is displayed, since a parenthesized mnemonic is often used for non-Roman languages. Finally, for historical reasons, if a label contains a tab character, then the tab and all remaining characters are hidden in the displayed menu. All of these rules are consistent with label handling in button% and other windows.