Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>hp_open()</b> c_exam7b http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
HP_OPEN()                                                          C_EXAM7B
   Opens a device for re-direction of FLIPPER commands.

   Syntax
         HP_OPEN(cOutputDevice)

   Arguments
         cOutputDevice A character string with the name of the output device.
           +----------------------------------------------+
           |Keywords for Printing to HPGL Devices         |
           -----------------------------------------------|
           |Output Device|Description                     |
           |-------------+--------------------------------|
           |   SCREEN    |Opens the screen for output.    |
           |   PLOTTER   |Opens a plotter for output.     |
           |   FILE      |Opens an HPGL file for output.  |
           |   LPT1      |Opens device on LPT1 for output.|
           |   LJIII     |Opens LaserJet III for output.  |
           +----------------------------------------------+
   Returns
         RET_HP()    Returns the HP device flag. 0 - output to screen
                                                 1 - output HPGL
                                                 2 - output PostScript

   Description
         HP_OPEN() sets a switch to re-direct all subsequent FLIPPER commands
         to the specified vector device. For example, if you opened a plotter
         for output and issued an FLINE() command, the line would not be drawn
         on the screen, but the appropriate HPGL command would be sent to a
         plotter. The source code for opening these devices is available on
         your disk as HP_CLIP.PRG.

         HPGL devices can differ in small ways. For example, a plotter's
         default orientation is landscape, while the LaserJet III and
         PostScript devices default to a portrait orientation. As a result, we
         must treat them differently. So the keyword for the standard HP
         plotter is "PLOTTER" while the keyword for HPGL on the LaserJet III
         is "LJIII". If you wish to send to a device like PacificPage Plotter
         in a cartridge or a plotter connected to a parallel printer port, use
         the keyword "LPT1".

See Also: HP_CLOSE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson