| ||||
superclass: object% | ||||
|
constructor
(new menu% [label label] [parent parent] [ [help-string help-string] [demand-callback demand-callback]]) → (is-a?/c menu%) label : label-string?
parent :
(or/c (is-a?/c menu%) (is-a?/c popup-menu%) (is-a?/c menu-bar%)) help-string : (or/c label-string? #f) = #f
demand-callback : ((is-a?/c menu%) . -> . any) = (lambda (m) (void))
Creates a new menu with the given label.
If label contains a & or tab characters, they are handled specially in the same way as for menu-item labels and buttons. See set-label and button%.
If help-string is not #f, the menu has a help string. See get-help-string for more information.
The demand-callback procedure is called by the default
on-demand method with the object itself.