/*************************************************************************/
                     Borland Visual Solutions Pack
                            READ_VB.TXT

  This README file contains information specific to Visual Basic and the
  Borland Visual Solutions Pack Volume 1 v1.1 Controls.

/*************************************************************************/

-----------------
TABLE OF CONTENTS
-----------------
1.   Using FormulaONE Function Calls
2.   Custom Bitmaps in Design Mode
3.   Printing TX Text Control


----------------------------------
1. Using FormulaONE Function Calls
----------------------------------

  The FormulaONE function calls provide complete access to the control
  functionality from Visual Basic.  They provide enough functionality to
  build a complete stand-alone spreadsheet.

  To access function calls from Visual Basic, include the file VTSS.TXT
  in your project.  These files contain the function declarations and
  constants.


--------------------------------
2. Custom Bitmaps in Design Mode
--------------------------------

  If you specify custom bitmaps during design mode, Visual Basic includes
  bitmaps in your .EXE file when you compile your program. If you want to
  specify the bitmaps at run time, make the bitmap files accessible when
  you run your program.  If you don't, you'll receive a "File not Found"
  error when you try to load the files.


---------------------------
3. Printing TX Text Control
---------------------------

  Visual Basic provides two techniques for sending information to a
  printer.  The first one is to use the PrintForm Method, the second is
  to use the printer object.  Both Methods have drawbacks.  PrintForm
  works with screen resolution only, which would result in very poor
  print quality. The printer object, on the other hand, provides the
  best print quality, but requires a lot of coding. TX Text Control
  uses the second method to achieve the best result, but without much
  coding.

  The following example sends the contents of a Text-Control, which can
  be several pages long, to the default printer:

     Sub mnuFile_Print_Click ()
        Dim wPages, No
        Printer.Print
        wPages = TextControl1.CurrentPages
        For No = 1 To wPages
           TextControl1.PrintDevice = Printer.hDC
           TextControl1.PrintPage = No
           Printer.NewPage
        Next No
        Printer.EndDoc
     End Sub

  After initializing the printer object with the "Printer.Print" statement,
  the number of pages is stored in a local variable called "wPages".  The
  "For .. Next" loop runs from 1 to "wPages" to print all of the pages.
  Inside the loop there are three lines of code which print a single page:

     1. The device context handle of the printer object is assigned to
        TX Text Control's PrintDevice Property.  Without this step, a
        device context which is compatible to the screen device would
        be used, resulting again in poor print quality.
     2. The number of the page to be printed is assigned to the PrintPage
        Property.  This will also start the printing process.
     3. The Printer object's NewPage method is invoked to advance to the
        next page.

  Everything else, like calculating the line and page breaks, is handled
  internally by the TX Text Control.  The formatting is based on the values
  of two groups of Properties; PageHeight and PageWidth which determine the
  dimensions of the printed page.  PageMarginB, PageMarginL, PageMarginR
  and PageMarginT determine the print margins.  These Properties are
  normally set in a print dialog box.


/**************************** END OF FILE ********************************/

