You may return to the Cvo Object Documenation Index from this document. This document contains the following sections describing the Cvo_TextViewPort object:
Cvo_TextViewPort
Cvo_ViewPort
#include
<Cvo/TextViewPort.h++>
new
Cvo_TextViewPort ( char *resource_name,
{ Cvo_Object *parent | Display *display },
[ Cvo_Page *page ] )
A Cvo_TextViewPort object displays a page of text, allowing the user to scroll forward and backward. The Cvo_TextViewPort object draws the text itself as opposed to requesting that the Cvo_Page draw the text, so no graphics are available.
This object defines the following member functions in addition to those defined by its parent and ancestor objects.
int FirstLine (
)
int LastLine (
)
Return the first or last line displayed in the Cvo_TextViewPort.
GotoLine (
int line )
This function attempts to place line as the first line displayed in the Cvo_TextViewPort.
Jump (
[ BOOL value ] )
If value is True
or not specified, this routine will cause the
Cvo_TextViewPort to jump to end of the page when new data is added.
If value is False
this does not happen, which is the default
behavior.
Return the Cvo_CRT object associated with the Cvo_TextViewPort.
OnlyEvaluateScreen (
[ BOOL value ] )
If value is True
or not specified, this routine will cause the
Cvo_TextViewPort to only look at the data actually displayed when
configuring the horizontal scroll bar. If value is False
every line in the page is examined when configuring the scroll bar,
which is the default behavior. This should be set to True
for very
large pages, or pages in which accessing every line is expensive.
Return the Cvo_Page associated with the Cvo_TextViewPort.
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.
This object uses the following X resources in addition to those used by its parent and ancestor objects.
*CvoTextViewPort.horizontalScrollBar
(class:
ScrollBar
)
*CvoTextViewPort.verticalScrollBar
(class:
ScrollBar
)This object modifies the following X resources which are used by its parent or other ancestors.
*CvoTextViewPort.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.