You may return to the Cvo Object Documenation Index from this document. This document contains the following sections describing the Cvo_Application object:
Cvo_Application
Cvo_Window
#include
<Cvo/Application.h++>
new
Cvo_Application ( char *resource_name,
[ Cvo_Object *parent | Display *display ],
[ Cvo_MenuBarList *menu_bar ] )
The Cvo_Application object is usually the top level window in an application. Because of this, typically the parent or display argument is not given. This object provides a menu bar, the company logo, and an area in which to build the application. The children of a Cvo_Application object are laid out in a vertical fashion with the menu bar at the top. A user defined menu bar, given by the menu_bar argument, may be used instead of the system default. The system default menu bar contains a single menu, "File", which has a single entry, "Exit..."
This object defines the following member functions in addition to those defined by its parent and ancestor objects.
Cvo_MenuBar *MenuBar (
)
Returns a pointer to the actual menu bar that was created for the object.
int InitializeToolTalk (
)
Initialize the Cvo_ToolTalk system, if possible. Currently this declares the following services:
The function returns a non-zero value if no errors were detected, and zero if the initialization failed. See the discussion on Cvo_ToolTalk for a description of what can be done with ToolTalk in a Cvo application.
This portion of Cvo will undergo quite a bit of change in the future.
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_MenuBar
:
*CvoApplication.menu-bar
This object modifies the following X resources which are used by its parent or other ancestors.
*CvoApplication.Chamfer
(new value:
0
)
*CvoApplication.Chamfer
(new value:
0
)
*CvoApplication.LayoutPad
(new value:
0
)
*CvoApplication.InternalPad
(new value:
0
)
*CvoApplication.Pad
(new value:
0
)
*CvoApplication.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.