3.30 menu-bar%
Implements: menu-item-container<%>
A menu-bar% object is created for a particular
frame% object. A frame can have at most one menu bar;
an exn:fail:contract exception is raised when a new menu bar is created for a frame that
already has a menu bar.
(->newmenu-bar% (parent_) [(demand-callback_)])menu-bar%object
parent:frame%object or'root
demand-callback=: procedure of one argument: avoidmenu-bar%objectCreates a menu bar in the specified frame. The menu bar is initially empty. If
'rootis supplied asparent, the menu bar becomes active only when no other frames are shown. A'rootparentis allowed only whencurrent-eventspace-has-menu-root?returns#t, and only if no such menu bar has been created before, otherwise anexn:fail:contractexception is raised.The
demand-callbackprocedure is called by the defaulton-demandmethod with the object itself.
Methods
enable
get-frame
is-enabled?
All Methods
enable from menu-bar%
get-frame from menu-bar%
get-items from menu-item-container<%>
is-enabled? from menu-bar%
on-demand from menu-item-container<%>