The tab style project
includes the following templates for displaying different types of
File: Displays a plain text file
on the page. This template replicates the the functionality of the
original file template found in the standard Include project. The
new template is compatible with any existing PageFile() or
DspFile() Cicode functions. It can display up to 24 lines of text
from a file at a time. Buttons are provided for the user to browse
to different rows and columns of the file.
File_RTF: Displays a rich text
format (RTF) file on the page using the CiTextBox ActiveX control.
It can also display plain text file.
File_HTML: Displays a hypertext
markup language (HTML) file or an universal resource locator (URL)
link on the page. It needs Microsoft Internet Explorer to be
installed on the machine.
Several common features are presented on the
The new file templates replicate the functionality
of the original file template in the Include project. The new
templates are compatible with any existing PageFile() or DspFile()
Cicode functions. They can display up to 24 lines of text from a
file at a time. Buttons are provided for the user to browse to
different rows and columns of the file.
Several new features are added to the
When you create a page based on
any of these templates in Graphics Builder, you can predefine the
file for display at runtime. Clicking anywhere on the page will
show a genie style dialog to allow you to enter a file path to
assign a file to the page. A Citect path substitution string can be
used in the file path. When the page is recalled at runtime, for
example via PageDisplay(), the specified file will be automatically
The "Open File" button displays
an Open File dialog to select a different file to display.
The "Refresh" button reopens the
already opened file to get the latest contents.
The full path name of the
currently opened file is displayed.