On this page:
new
Inherited methods:
from labelled-menu-item<%>
enable
get-help-string
get-label
get-plain-label
is-enabled?
on-demand
set-help-string
set-label
from menu-item<%>
delete
get-parent
is-deleted?
restore
from menu-item-container<%>
get-items

class

menu% : class?

  superclass: object%

  extends: menu-item-container<%>
 labelled-menu-item<%>
A menu% object is a submenu within a menu% or popup-menu%, or as a top-level menu in a menu-bar%.

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.