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:application:mismatch exception is raised when a new menu bar is created for a frame that
already has a menu bar.
( -> new menu-bar% (parent _) [(demand-callback _)])menu-bar% object
parent : frame% object or 'root
demand-callback = : procedure of one argument: a voidmenu-bar% object
Creates a menu bar in the specified frame. The menu bar is initially
empty. If 'root is supplied as parent, the menu
bar becomes active only when no other frames are shown. A
'root parent is allowed only when
current-eventspace-has-menu-root? returns
#t, and only if no such menu bar has been created before,
otherwise an exn:application:mismatch exception is raised.
The demand-callback procedure is called by the default
on-demand method 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<%>