A menu_bar represents a series of popup objects operated as pulldown menus. See for example the menu_bar in the PCE manual window. Various techniques are commonly used to give commands through graphical interfaces:
Applications may chose for any of these techniques or a combination thereof. See also example Menu Bar.
-label_font->compute
and
menu_bar<-item_size.
<-button)
that caused the first menu to appear. Used internally.->append’ed,
a button is added to this chain to visualise the popup. The button<-popup
slot refers to the popup.
This implementation allows for easy emulation of the OpenLook look-and-feel style as OpenLook does not define menu-bars.
->pen
and dialog_item->label_font.
.label_font
@see dialog_item->label_font<-labels are displayed
left-to-right from from this chain.
<-active.
->active_member
for all member popups.
->all_on->on
on the specified popup
object, activating all
menu_item objects
part of it.
|popup]<-buttons
with the following attributes:
button <-popupSet to the popup dialog_item <-labeldialog_item <-labelbutton <-fontSet to dialog_item <-label_fontgraphical <-penSet to graphical <-penbutton <-radiusSet tp menu_bar <-radius
The dialog_item<-label_font, graphical<-pen
and menu_bar<-radius of the button are
<-look
equals open_look. Because an OpenLook menu-bar really is a row of
buttons.
If the alignment argument is right, this
button is flushed to the right if the menu-bar is resized to be wider
than the space required by the buttons. Motif and Windows 95
look-and-feel normally flush the help menu to the right:
..., new(MB, menu_bar), send(MB, append, new(F, popup(file))), send(MB, append, new(H, popup(help)), right), ...,
See also dialog->assign_accelerators
and menu->assign_accelerators.
->append<-item_size.
The menu_bar<-item_size is the largest of
menu_bar.size
and the size needed to display the largest label.
width argument is not
@default and
larger than the space required by the buttons, the first button with dialog_item<-alignment
and all succeeding buttons are flushed to the right. See also menu_bar->append.<-member).
Diagnostics: The default name is the class name
(menu_bar).
-label_font|menu_item->on|menu_item->on
with same argument on all member popups. Always succeeds.
<-current
and dialog_item->open
it. See also menu_bar<-current
and
menu_bar<-popup_from_event.
Used by menu_bar->event.
<-members
popup's->geometry.|popup -> popup<-label
equals the argument.->event.
See also menu_bar->show_popup
and menu_bar<-current.