ThtmlViewer Component

Version 4.03 for Delphi 1

Copyright 1995-6 by L. David Baldwin
All Rights Reserved

Contents


What is the ThtmlViewer Component?

The ThtmlViewer component provides an easy way to display HyperText Markup Language (HTML) documents in a Borland Delphi program. Version 4.03 of the viewer supports most of the HTML 2.0 specs and several of the more popular HTML 3 enhancements:

While HTML documents are normally associated with the Internet World Wide Web, they are also very useful for displaying all kinds of textual material such as documentation, helpfiles, etc. Graphics are easily incorporated in these documents.

Return to Contents


Files Supplied

   README.HTM      This file
   HTMLDEMO.EXE    The demo file
   SAMPLES.HTM     An HTML file showing the use of various HTML tags
   SUPPORT.HTM     List of HTML Tags and Attributes supported by this version
   TABLETUT.HTM    A Tutorial showing the use of Tables
   WHATSNEW.HTM    A Summary of recent additions and changes
   CRHRN1.WAV      Sound for demo
   BLKGREEN.HTM    Other sample HTML files
   GUDCOLOR.HTM
   Various image files
         One of the following ImageLib Graphics DLLs
     ILIB31HT.DLL   Delphi 1 full feature DLL
     ILBDEM31.DLL   Delphi 1 demo DLL

   DEMOSRC.ZIP   Source code for the demo program
      HTMLDEMO.DPR
      HTMLDEMO.RES
      DEMOUNIT.PAS
      DEMOUNIT.DFM
      HTMLABT.PAS   Unit for demo
      HTMLABT.DFM
      FONTDLG.PAS   Unit for demo
      FONTDLG.DFM
      SUBMIT.PAS    Unit for demo
      SUBMIT.DFM

   UNITS.ZIP   Installation files for the ThtmlViewer component
          (Shareware version only)
      HTMLVIEW.DCU
      HTMLVIEW.DCR
      HTMLSUBS.DCU
      READHTML.DCU
      HTMLUN2.DCU
      DLLDEM16.DCU
      HTML.RES
      HTMLVIEW.HLP  The help file
      HTMLVIEW.KWF  It's keyword file
      HTMLVIEW.INT  The interface for HTMLVIEW.PAS

   SOURCE.ZIP   Installation files for the ThtmlViewer component
          (Professional version only)
      HTMLVIEW.PAS
      HTMLVIEW.DCR
      HTMLSUBS.PAS
      READHTML.PAS
      HTMLUN2.PAS
      DLLINT16.DCU
      HTML.RES
      HTMLVIEW.HLP  The help file
      HTMLVIEW.KWF  It's keyword file

Return to Contents


Installing The ThtmlViewer Component

Important! This version of the ThtmlViewer is for Delphi 1. It cannot be used with Delphi 2.

Installing new components in the library is covered starting on page 68 of the Delphi User's manual. Here's some extra comments and suggestions.

Note: If you are installing the Professional version, use the equivalent source files (.PAS) in place of the Unit files (.DCU) mentioned below.

  1. The Register procedure in HTMLVIEW.DCU is set to place ThtmlViewer on the palette page tab named "Samples". You can relocate it later from the IDE if desired.

  2. Important! Backup COMPLIB.DCL or start a new library file.

  3. If you have installed an earlier version of ThtmlViewer, be sure and remove it from COMPLIB.DCL (use the Remove button in the Install Components Dialog). The old files should be deleted or otherwise made unaccessible before doing the new installation.

  4. Pick a directory for the ThtmlViewer component. Put HTMLVIEW.DCU, HTMLVIEW.DCR, HTMLSUBS.DCU, READHTML.DCU, HTMLUN2.DCU, and HTML.RES in the chosen directory.

  5. Important! Copy the ILIB31HT.DLL or ILBDEM31.DLL module to the WINDOWS\SYSTEM directory.

  6. From the Delphi IDE, choose Options | Install Components. In the dialog, choose the Add... button. In the Add Module dialog that then comes up, the simplest approach is to use the Browse button to find HTMLVIEW.DCU. Then hit OK and the Search Path edit box will have the correct path added and ThtmlViewer will have been added to the installed units listbox. (You may have to scroll down to see it.)

  7. Hit OK on the Install Components dialog and the necessary steps will be taken to do the installation. The ThtmlViewer button will appear on the SAMPLES component page tab.

Return to Contents


Installing the Help File

The file HTMLVIEW.HLP will supply context sensitive help for the ThtmlViewer component. Installation of component help files is discussed in the Delphi Component Writer's Guide on page 80.

  1. Place the HTMLVIEW.KWF file in the DELPHI\HELP directory along with the other .KWF files.

  2. Close the Delphi IDE.

  3. Run Delphi's HELPINST program. Choose File | Open to open DELPHI.HDX in the DELPHI\BIN directory.

  4. Choose Keywords | Add Keyword File to add the HTMLVIEW.KWF file to the list of .KWF files.

  5. Choose File | Save or hit the blue disk button to compile and save the revised .HDX file.

  6. Now it remains to set things up so that WINHELP can find the help file, HTMLVIEW.HLP. There are several choices:

    • Put HTMLVIEW.HLP in the DELPHI\BIN directory with the other help files.
    • Put HTMLVIEW.HLP somewhere on your path.
    • Modify WINHELP.INI to add a directory entry for HTMLVIEW.HLP.

The HTMLVIEW.HLP file contains documentation on how to use the ThtmlViewer component. To access the help, open the help file from Delphi, press the Search All button and search for "ThtmlViewer". Or place a ThtmlViewer component on your form and press F1.

Return to Contents


Sales Information

There are two versions of the ThtmlViewer package -- the Professional version and the shareware version.

The shareware version may be used without charge by hobbyists, students, occasional users, etc., for their own personal use.

If you are planning on using the ThtmlViewer in a product to be sold or distributed to others or for company use, you should purchase the Professional version. The Professional version includes:

If you're planning to use ThtmlViewer as part of another VCL component offered for sale, please contact us for additional information.

Pricing for the Professional version is:

To order, contact us at the sales address below.

Return to Contents


Contacts and Addresses

Note: Address and Telephone will change around December 13, 1996. Please verify by email.
Sales and Technical
Dave Baldwin,
22 Fox Den Road
Hollis, New Hampshire 03049
USA
(603) 465-7857
CompuServe ID: 76327,53
Internet: dbaldwin@pbear.com
World Wide Web: http://www.pbear.com/

Return to Contents


ImageLib Graphics Software

Image display (GIF, JPEG, and PNG) is provided using a portion of ImageLib's image library. The full ImageLib shareware package may be downloaded from CompuServe's Delphi Forum, Library 5. The filename is IMAGELIB.ZIP.

For further technical information, contact:

Jan Dekkers
Skyline Tools
Compuserve: 72130,353
Internet: 72130.353@compuserve.com

Return to Contents


GIF Image Royalties

Important:

The use of GIF Images in a commercial product may necessitate royalty payments to Unisys Corporation. For further information, contact:

Mark T. Starr, Esq
Internet: StarrMT@po4.bb.unisys.com
Unisys Corporation - MS/C2SW1
PO Box 500
Blue Bell, PA 19424