You may return to the Cvo Object Documenation Index from this document. This document contains the following sections describing the Cvo_MenuBar object:
Cvo_MenuBar
Cvo_Window
#include
<Cvo/MenuBar.h++>
new
Cvo_MenuBar ( char *resource_name,
{ Cvo_Object *parent | Display *display },
Cvo_MenuBarList *menu_bar )
The Cvo_MenuBar is an object that contains a series of
Cvo_ButtonMenu objects as well as the company logo, displayed from
left to right. Typically the Cvo_ButtonMenu objects build from the
left, but any item with the resource name of CvoMB_Help
will be
built from the right.
The menu_bar argument points to a NULL
terminated array of
Cvo_MenuBarList structures, which are used to construct the entries
for the Cvo_MenuBar.
This object defines the following member functions in addition to those defined by its parent and ancestor objects.
Cvo_MenuBarEntries *Menus (
)
This function returns a pointer to the Cvo_MenuBarEntries structures used by the Cvo_MenuBar object to store the Cvo_Menu and Cvo_ButtonMenu objects for each entry on the menubar.
This object is composed of the following Cvo objects. Each object has the shown resource name. This link displays the composition of the parent object.
Cvo_Picture
:
*CvoMenuBar.logo
This object uses the following X resources in addition to those used by its parent and ancestor objects.
*CvoMenuBar.showLogo
(class:
ShowLogo
) (default value:
True
)
This resource specifies whether or not the company logo should be displayed by this Cvo_MenuBar object.
This object modifies the following X resources which are used by its parent or other ancestors.
*CvoMenuBar.InternalPad
(new value:
10
)
*CvoMenuBar.Cursor
(new value:
Top Left Arrow
)
*CvoMenuBar.LayoutPad
(new value:
0
)
*CvoMenuBar.InternalPad
(new value:
0
)
*CvoMenuBar.Pad
(new value:
2
)
*CvoMenuBar.logo.Chamfer
(new value:
0
)
*CvoMenuBar.logo.Pad
(new value:
0
)
*CvoMenuBar.logo.BorderWidth
(new value:
0
)
See the example source code for an example of how to use this object.
See the legend for information about the conventions used in this documentation.