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

Class

Cvo_OptionMenu

Base

Cvo_Window

Syntax

#include <Cvo/OptionMenu.h++>

new Cvo_OptionMenu ( char *resource_name,
{ Cvo_Object *parent | Display *display },
Cvo_MenuItem *menu )

Overview

A Cvo_OptionMenu object creates a Cvo_MenuLabel, which when pressed, causes a Cvo_Menu of selections to appear over it. The menu argument gives the entries which will appear on the Cvo_Menu object. The label will always display the last selected entry of the menu. See the Cvo_Menu object for a list of events which may be generated by this object.

To add entries to this object's Cvo_Menu, refer to the Cvo_MenuEntry object. The MenuEntries() member function will return a list Cvo_MenuEntry objects, which is necessary to add entries to the menu.

Member Functions

This object defines the following member functions 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.