home *** CD-ROM | disk | FTP | other *** search
- ╔════════════════════════════════════════════════════╗
- ║ P R I N T S E T ║
- ╟────────────────────────────────────────────────────╢
- ║ Most modern printers have a variety of useful ║
- ║ styles and fonts which you can select by setting ║
- ║ dip switches or sending the appropriate control ║
- ║ codes from the computer. Unfortunately, this is ║
- ║ not always convenient, especially when you are ║
- ║ in the middle of a program, and have to duck out ║
- ║ to set up the proper print size. ║
- ║ ║
- ║ PRINTSET is a utility which makes font selection ║
- ║ easy. You can add it to your Q-BASIC programs by ║
- ║ using the following command at Link time : ║
- ║ ║
- ╚════════════════════════════════════════════════════╝
- ╔════════════════════════════════════════════════════╗
- ║ P R I N T S E T ║
- ╟────────────────────────────────────────────────────╢
- ║ LINK yourprog,,,PRINTSET.LIB; ║
- ║ ║
- ║ You must also declare the appropriate procedure ║
- ║ at the beginning of your Q-BASIC source code. ║
- ║ ║
- ║ DECLARE SUB PrintXXX (Printer%) ║
- ║ ║
- ║ PRINTSET.LIB contains font menu procedures for a ║
- ║ number of standard printer drivers. The Linker ║
- ║ will only extract the routines for the printers ║
- ║ which you specify in your program. ║
- ║ ║
- ╚════════════════════════════════════════════════════╝
- ╔════════════════════════════════════════════════════╗
- ║ P R I N T S E T ║
- ╟────────────────────────────────────────────────────╢
- ║ Thereafter, you can invoke the routine anywhere, ║
- ║ by issuing the statement : PrintXXX Device% ║
- ║ Where `XXX' specifies the special library module ║
- ║ for the printer which the program will be using, ║
- ║ and Device% = 1 for LPT1:, 2 for LPT2: etc. ║
- ║ ║
- ║ PRINTSET overlays the screen with a popup window ║
- ║ containing a menu of available fonts. It prompts ║
- ║ you to select one and, after you've pressed the ║
- ║ key corresponding to your choice, sends a string ║
- ║ of appropriate codes to the printer. The program ║
- ║ then restores the screen to its original state. ║
- ╚════════════════════════════════════════════════════╝
- ╔════════════════════════════════════════════════════╗
- ║ P R I N T S E T ║
- ╟────────────────────────────────────────────────────╢
- ║ Versions of PRINTSET are available, configured ║
- ║ to the following standard printer types : ║
- ║ ║
- ║ PRINTIBM.OBJ For IBM compatible printers. ║
- ║ PRINTEPS.OBJ For Epson compatible printers. ║
- ║ PRINTTRS.OBJ For Radio Shack printers. ║
- ║ PRINTOKI.OBJ For OKI Microline printers. ║
- ║ ║
- ║ Drivers for other types of printer can be easily ║
- ║ produced by adding the appropriate control codes ║
- ║ to the source file and reassembling. ║
- ╚════════════════════════════════════════════════════╝