You may return to the Cvo Object Documenation Index from this document. This document contains the following sections describing the Cvo_FileView object:
Cvo_FileView
Cvo_Window
#include
<Cvo/FileView.h++>
new
Cvo_FileView ( char *resource_name,
{ Cvo_Object *parent | Display *display },
char *title,
{ char *filename | Cvo_Page *page } )
A Cvo_FileView object is used to create a window with a title, a
Cvo_Pin, and a text viewport. The title argument is the title to
display above the viewport and to the right of the Cvo_Pin. The text
to be displayed may either be in a Cvo_Page referenced by page
or the text file named by filename. If filename cannot be
opened, an error message will appear in the viewport. Typically, a
Cvo_FileView object will be created with a parent of
Cvo_MAINWINDOW
so that it appears as a popup window.
This object defines the following member functions in addition to those defined by its parent and ancestor objects.
Cvo_TextViewPort *TextViewPort (
)
This function returns the Cvo_TextViewPort object that is contained in the Cvo_FileView object.
This function returns the Cvo_Page used by the Cvo_TextViewPort in the Cvo_FileView object.
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_Frame
:
*CvoFileView.title_frame
Cvo_Pin
:
*CvoFileView.title_frame.pin
Cvo_Label
:
*CvoFileView.title_frame.title
Cvo_TextViewPort
:
*CvoFileView.viewer
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.