You may return to the Cvo Object Documenation Index from this document. This document contains the following sections describing the Cvo_MenuBarList structure:

Structure

Cvo_MenuBarList

Syntax

#include <Cvo/MenuBar.h++>

struct Cvo_MenuBarList {
char *resource,
Cvo_MenuItem *items,
Cvo_Menu *menu,
Cvo_ButtonMenu *button }

Overview

This structure is used to define a menu that should appear on a Cvo_MenuBar. It is also used by the Cvo_Application object to define a custom menu bar.

The resource element should point to a string containing the X resource which will be used to determine the text that should appear on the menu bar for the item. Two standard names are defined.

If a different resource name is used, then the appropriate entry should appear in the X resource database. For instance, if a resource of edit is used, then an X resource of the form *MenuBar.edit: _Edit should be placed in the X resource database. If a character in the resource value is preceded by an underbar, as the "E" is in the example, then that character will be an accelerator for this menubar entry. Pressing that key in conjunction with a modifer key will cause this menubar entry's associated menu to be displayed. See the Cvo_ButtonMenu documentation for an explanation of how the particular modifier key is selected.

The items element should point to a NULL terminated list of Cvo_MenuItem objects which define the menu. Also see the Cvo_Menu documentation.

The menu and button elements are filled in when the Cvo_MenuBar is initialized. They will point to the Cvo_Menu and Cvo_ButtonMenu objects created for this particular menubar entry.


See the example source code for an example of how to use this structure.


See the legend for information about the conventions used in this documentation.