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