home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / games / 144 / pascal / print.doc < prev    next >
Encoding:
Text File  |  1987-06-16  |  2.5 KB  |  42 lines

  1.         "PRINT.ACC" is a desk accessory that formats straight ASCII text files
  2. and prints them on an 80-column printer. It will not format lines correctly on
  3. a printer that can print more than 80 columns.  Each page will be numbered and
  4. have the file path name listed that is currently being printed.  Optional line
  5. numbers may be added as desired.
  6.  
  7.         This program was written in PERSONAL PASCAL ((c) OSS), and portions of
  8. which were  copied from  another  earlier  print  program  found on the DELPHI
  9. data base.  A few "bugs"  were corrected;  then the  original program was con-
  10. verted to a desk accessary. In addition,  an  interactive dialog box was crea-
  11. ted  to  list the  progress of  the  file  printing,  and to  allow  for early
  12. termination of the printing.  As such, this program shows one way how to write
  13. interactive dialog boxes from  PERSONAL PASCAL, using the AES WIND_Update call
  14. to temporarily  stop  the screen manager  from updating window borders or menu
  15. items. It also show the technique on how to create desk accessaries.
  16.  
  17.         To use this accessary,  it must first be copied to the  root directory
  18. (i.e. - not in any folder) of the diskette  used to start up  your ST computer
  19. (in Drive "A") or on Drive "C" if your  want to load the  accessory from an a-
  20. vailable hard disk drive.  When activated, the desk accessary  will prompt you
  21. to insert  a diskette  into the floppy  drive if that  was the last  drive ac-
  22. cessed. A file selector dialog box will then appear to prompt you for the file
  23. that  you want to print.  After the file  pathname is selected,  an  alert box
  24. will appear  asking for the  "line number"  option.  Following this prompt the
  25. program will begin to print  your file.  If you click the left mouse button on
  26. any  "CANCEL" button  during the  file print setup,  the  accessory  will halt
  27. there.
  28.  
  29.         PASACC.O  is an  object file  that is  included for those  who wish to
  30. change the program then recompile and link the desk accessary.  PASACC.O  must
  31. be the FIRST file that is then  linked with the  object file that was  created
  32. when PRINT.PAS was compiled  (ie. - PRINT.O).  After the  linking is complete,
  33. the file PASACC.PRG is created, which should then be renamed to  PRINT.ACC for
  34. it to work properly.
  35.  
  36.         I use this accessary to print out file listings of all my programs, as
  37. well as FORUM downloads from  DELPHI weekly.  I hope that you find the program
  38. as useful and instructive as I have!
  39.  
  40.  
  41.                            Phillip R. Poulos, M.D. {DOCTORP}
  42.