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

Class

Cvo_ButtonMenu

Base

Cvo_MenuLabel

Syntax

#include <Cvo/ButtonMenu.h++>

new Cvo_ButtonMenu ( char *resource_name,
{ Cvo_Object *parent | Display *display },
Cvo_MenuItem *menu,
[ Cvo_MenuBar *menu_bar ] )

Overview

A Cvo_ButtonMenu object creates a button, which when pressed, causes a Cvo_Menu to appear directly below it. The contents of the menu are initially defined by the menu argument, a NULL terminated array of Cvo_MenuItem objects. The Cvo_Menu object will be constructed with the menu argument. The menu_bar argument is used to indicate that this Cvo_ButtonMenu object is actually located on the specified Cvo_MenuBar.

See the parent object, Cvo_MenuLabel, for information on setting the label text for this button, via member functions and X resource values.

Member Functions

This object defines the following member functions in addition to those defined by its parent and ancestor objects.

Cvo Events

This object defines the following Cvo Events in addition to those defined by its parent and ancestor objects.

Event Translations

This object defines the following event translations in addition to those defined by its parent and ancestor objects.

Modified X Resources

This object modifies the following X resources which are used by its parent or other ancestors.


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.