home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / GR / GR021A.ZIP / DRAFT2.DOC < prev    next >
Text File  |  1989-08-08  |  126KB  |  3,962 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.                                    PC-Draft II (tm)
  16.  
  17.                                      User Manual
  18.  
  19.                                      Release 3.24
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.                (C) Copyright 1986,1987,1988,1989 - All Rights reserved
  47.  
  48.                                    Natural Software
  49.                                 19 South fifth Street
  50.                              St. Charles Illinois, 60174
  51.                                     (312) 377-7320
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.      LICENSE
  89.  
  90.      THE PC-Draft II SOFTWARE AND MANUAL IS COPYRIGHTED, ALL RIGHTS ARE RESE-
  91.      RVED. YOU HAVE PURCHASED A LICENSE TO USE THIS SOFTWARE ON ONE MACHINE AT A
  92.      TIME. YOU ARE AUTHORIZED TO MAKE COPIES OF PC-DRAFT II FOR THE SOLE PURPOSE
  93.      OF BACKING UP YOUR SOFTWARE AND PROTECTING YOUR INVESTMENT FROM LOSS.
  94.  
  95.      Note: this copy of PC-Draft II is being distributed as Shareware. This
  96.      means that you may copy the disk just as you received it and you may give
  97.      it to others for their trial use. You are also permitted and encouraged to
  98.      upload this version to electronic bulletin board services. You may not,
  99.      however resell or collect any fee for the distribution of PC-Draft without
  100.      the permission of Natural Software. (This does not include the normal fees
  101.      for using bulletin boards.) If you continue to use PC-Draft II after your
  102.      trial use, you must pay the purchase price as detailed below.
  103.  
  104.  
  105.      WARRANTY
  106.  
  107.      THIS SOFTWARE WILL PERFORM AS DESCRIBED HEREIN ONLY IF PROPERLY APPLIED.
  108.      OUR LIABILITY TO YOU IS LIMITED TO REPLACING THE SOFTWARE (FOR REGISTERED
  109.      USERS). WE HAVE NO LIABILITY TO YOU FOR ANY DAMAGE OR LOSS, INCLUDING
  110.      SPECIAL, INCIDENTAL, OR CONSEQUENTIAL, CAUSED BY THIS SOFTWARE, DIRECTLY OR
  111.      INDIRECTLY.
  112.  
  113.      YOU AGREE TO THE TERMS OF THIS LICENSE BY YOUR DECISION TO USE THIS
  114.      SOFTWARE.
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.                                           i
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.                                   Table of contents
  142.  
  143.  
  144.      Introduction  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   v
  145.           Shareware  . . . . . . . . . . . . . . . . . . . . . . . . . . . .   2
  146.                What registered users get . . . . . . . . . . . . . . . . . .   2
  147.           System Requirements  . . . . . . . . . . . . . . . . . . . . . . .   3
  148.           Terminology  . . . . . . . . . . . . . . . . . . . . . . . . . . .   4
  149.           Installation . . . . . . . . . . . . . . . . . . . . . . . . . . .   4
  150.                MicroSoft Mouse . . . . . . . . . . . . . . . . . . . . . . .   4
  151.                Other Mice  . . . . . . . . . . . . . . . . . . . . . . . . .   5
  152.           Printers . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   5
  153.           Files used . . . . . . . . . . . . . . . . . . . . . . . . . . . .   6
  154.           File Names . . . . . . . . . . . . . . . . . . . . . . . . . . . .   6
  155.  
  156.      The Basics  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   7
  157.           Starting PC-Draft  . . . . . . . . . . . . . . . . . . . . . . . .   7
  158.           Cursor Movement  . . . . . . . . . . . . . . . . . . . . . . . . .   7
  159.                Cursor Increment  . . . . . . . . . . . . . . . . . . . . . .   7
  160.                Suspend Cursor  . . . . . . . . . . . . . . . . . . . . . . .   7
  161.                Change Cursor . . . . . . . . . . . . . . . . . . . . . . . .   8
  162.           Menu Selections  . . . . . . . . . . . . . . . . . . . . . . . . .   8
  163.                Display Menu Bar  . . . . . . . . . . . . . . . . . . . . . .   8
  164.           The Control Panel  . . . . . . . . . . . . . . . . . . . . . . . .   9
  165.           The Drawing Area . . . . . . . . . . . . . . . . . . . . . . . . .   9
  166.                Moving around . . . . . . . . . . . . . . . . . . . . . . . .  10
  167.                Direct Move . . . . . . . . . . . . . . . . . . . . . . . . .  10
  168.                Home  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  10
  169.           Using markers  . . . . . . . . . . . . . . . . . . . . . . . . . .  10
  170.                Setting markers . . . . . . . . . . . . . . . . . . . . . . .  10
  171.                Jump to marker  . . . . . . . . . . . . . . . . . . . . . . .  10
  172.           Clearing the Screen  . . . . . . . . . . . . . . . . . . . . . . .  11
  173.           Erasing  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  11
  174.           Undo Command . . . . . . . . . . . . . . . . . . . . . . . . . . .  11
  175.           Saving Your Work . . . . . . . . . . . . . . . . . . . . . . . . .  12
  176.                Directory Search  . . . . . . . . . . . . . . . . . . . . . .  13
  177.           Ending PC-Draft  . . . . . . . . . . . . . . . . . . . . . . . . .  13
  178.  
  179.      Drawing Commands  . . . . . . . . . . . . . . . . . . . . . . . . . . .  14
  180.                Line  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  14
  181.                Multi-Line  . . . . . . . . . . . . . . . . . . . . . . . . .  14
  182.                Free Draw . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  183.                Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  184.                Rectangle . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  185.                Circle  . . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  186.                Ellipse . . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  187.                Curve . . . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  188.                Paint . . . . . . . . . . . . . . . . . . . . . . . . . . . .  16
  189.                Arc . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  16
  190.                Text  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  16
  191.                Write . . . . . . . . . . . . . . . . . . . . . . . . . . . .  17
  192.  
  193.  
  194.                                           ii
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.                Object  . . . . . . . . . . . . . . . . . . . . . . . . . . .  17
  208.                Drop Object . . . . . . . . . . . . . . . . . . . . . . . . .  17
  209.                Object Functions  . . . . . . . . . . . . . . . . . . . . . .  17
  210.                Transfer to Font  . . . . . . . . . . . . . . . . . . . . . .  18
  211.                Zoom  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  18
  212.           Goodies  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  19
  213.                Just paint  . . . . . . . . . . . . . . . . . . . . . . . . .  19
  214.                SpraY Can . . . . . . . . . . . . . . . . . . . . . . . . . .  19
  215.                Kursor  . . . . . . . . . . . . . . . . . . . . . . . . . . .  20
  216.                Mouse cursor  . . . . . . . . . . . . . . . . . . . . . . . .  20
  217.                grId  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  20
  218.                Quick view  . . . . . . . . . . . . . . . . . . . . . . . . .  21
  219.                sNap  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  21
  220.                Color . . . . . . . . . . . . . . . . . . . . . . . . . . . .  21
  221.                Window  . . . . . . . . . . . . . . . . . . . . . . . . . . .  21
  222.  
  223.      Patterns  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  22
  224.           Loading Patterns . . . . . . . . . . . . . . . . . . . . . . . . .  22
  225.           Selecting Patterns . . . . . . . . . . . . . . . . . . . . . . . .  22
  226.           Creating and changing Patterns . . . . . . . . . . . . . . . . . .  22
  227.           Saving Patterns  . . . . . . . . . . . . . . . . . . . . . . . . .  22
  228.  
  229.      Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  23
  230.           Saving Objects . . . . . . . . . . . . . . . . . . . . . . . . . .  23
  231.           Retrieving Objects . . . . . . . . . . . . . . . . . . . . . . . .  23
  232.  
  233.      Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  24
  234.           Using Fonts  . . . . . . . . . . . . . . . . . . . . . . . . . . .  24
  235.           Creating, changing Fonts . . . . . . . . . . . . . . . . . . . . .  24
  236.           Saving Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . .  25
  237.  
  238.      Macros  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  26
  239.           Using Macros . . . . . . . . . . . . . . . . . . . . . . . . . . .  26
  240.           Creating Macros  . . . . . . . . . . . . . . . . . . . . . . . . .  26
  241.           Suspend Cursor Increment . . . . . . . . . . . . . . . . . . . . .  26
  242.           Relative [+/-] Cursor Increment  . . . . . . . . . . . . . . . . .  26
  243.           .MAC file structure  . . . . . . . . . . . . . . . . . . . . . . .  27
  244.           Importing text files:  . . . . . . . . . . . . . . . . . . . . . .  27
  245.  
  246.      Graphs  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  247.           Editing Points . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  248.           Saving Points  . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  249.           loading Points . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  250.           Graph Type . . . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  251.           Drawing graphs . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  252.  
  253.      Drawing Mode  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  31
  254.  
  255.      Printing  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  32
  256.           Printer resolution modes . . . . . . . . . . . . . . . . . . . . .  32
  257.                IBM dot matrix  . . . . . . . . . . . . . . . . . . . . . . .  33
  258.                Epson dot matrix  . . . . . . . . . . . . . . . . . . . . . .  33
  259.  
  260.                                          iii
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.                HP LaserJet+  . . . . . . . . . . . . . . . . . . . . . . . .  33
  274.                IDS Microprism  . . . . . . . . . . . . . . . . . . . . . . .  34
  275.                C.Itoh 8510-1550  . . . . . . . . . . . . . . . . . . . . . .  34
  276.                GEM .IMG  . . . . . . . . . . . . . . . . . . . . . . . . . .  34
  277.           Print current screen window  . . . . . . . . . . . . . . . . . . .  34
  278.           Print full drawing . . . . . . . . . . . . . . . . . . . . . . . .  35
  279.           Print partial screen . . . . . . . . . . . . . . . . . . . . . . .  35
  280.  
  281.      Screen Capture  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  36
  282.  
  283.      The PIX graphics language . . . . . . . . . . . . . . . . . . . . . . .  37
  284.                Starting PIX  . . . . . . . . . . . . . . . . . . . . . . . .  38
  285.                Trace mode  . . . . . . . . . . . . . . . . . . . . . . . . .  38
  286.                Exit PIX  . . . . . . . . . . . . . . . . . . . . . . . . . .  38
  287.           PIX Commands . . . . . . . . . . . . . . . . . . . . . . . . . . .  39
  288.                Variables . . . . . . . . . . . . . . . . . . . . . . . . . .  39
  289.                Assign (LET)  . . . . . . . . . . . . . . . . . . . . . . . .  39
  290.                Increment . . . . . . . . . . . . . . . . . . . . . . . . . .  40
  291.                Decrement . . . . . . . . . . . . . . . . . . . . . . . . . .  40
  292.           Cursor Movement Commands . . . . . . . . . . . . . . . . . . . . .  40
  293.                Gotoxy  . . . . . . . . . . . . . . . . . . . . . . . . . . .  40
  294.           Screen moves . . . . . . . . . . . . . . . . . . . . . . . . . . .  41
  295.           Drawing Commands . . . . . . . . . . . . . . . . . . . . . . . . .  41
  296.                Arc . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  42
  297.           Non Drawing Commands . . . . . . . . . . . . . . . . . . . . . . .  44
  298.           File Commands  . . . . . . . . . . . . . . . . . . . . . . . . . .  44
  299.           Program Control Statements . . . . . . . . . . . . . . . . . . . .  44
  300.           Other Commands . . . . . . . . . . . . . . . . . . . . . . . . . .  45
  301.           New PIX commands . . . . . . . . . . . . . . . . . . . . . . . . .  45
  302.                Pause . . . . . . . . . . . . . . . . . . . . . . . . . . . .  45
  303.                Getkey  . . . . . . . . . . . . . . . . . . . . . . . . . . .  45
  304.                Case  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  45
  305.                Jmp . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  47
  306.                Popup . . . . . . . . . . . . . . . . . . . . . . . . . . . .  48
  307.                Popdown . . . . . . . . . . . . . . . . . . . . . . . . . . .  47
  308.                Pgotoxy . . . . . . . . . . . . . . . . . . . . . . . . . . .  47
  309.                Tgotoxy . . . . . . . . . . . . . . . . . . . . . . . . . . .  48
  310.                Print . . . . . . . . . . . . . . . . . . . . . . . . . . . .  48
  311.           PC-Draft commands not supported  . . . . . . . . . . . . . . . . .  49
  312.  
  313.      Summary of PIX commands . . . . . . . . . . . . . . . . . . . . . . . .  50
  314.  
  315.      Summary of Drawing Commands . . . . . . . . . . . . . . . . . . . . . .  52
  316.  
  317.      Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  53
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.                                           iv
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.                                      Introduction
  340.  
  341.  
  342.      PC-Draft II is a high resolution pixel oriented drawing and graphing
  343.      utility, which is designed to facilitate a variety of drawing and drafting
  344.      needs.  Some of PC-Draft II's features:
  345.  
  346.           o    You can produce drawings up to 1280 by 700 dots using IBM's color
  347.                graphic adaptor high resolution graphics mode (640 x 200 dots per
  348.                screen). Such a drawing will more than fill an 8-1/2 x 11 inch
  349.                printed output (at 150 dots per inch resolution).
  350.  
  351.           o    Built-in functions allow you to draw circles, lines, boxes, arcs
  352.                and curves; draw bar, line and pie graphs; create patterns with
  353.                which to fill areas; cut and paste objects and save objects to
  354.                files for later use.  
  355.  
  356.           o    PC-Draft is both menu driven and command driven -- all drawing
  357.                commands may be selected from the menus or may be entered by a
  358.                single keystroke command such as [C] to draw a circle or [L] for
  359.                line.
  360.  
  361.           o    You can zoom in to precisely edit one pixel at a time.
  362.  
  363.           o    You can record graphic keyboard macros saved in files for later
  364.                playback and for animation effects.
  365.  
  366.           o    You can load and edit fonts. 
  367.  
  368.           o    You can print your drawings on a variety of printers including
  369.                those compatible with IBM and Epson Dot matrix, HP Laserjet+, and
  370.                HP DeskJet printers. Also you can save the output to the printer
  371.                in a file for later batch printing.
  372.  
  373.           o    You can save portions of the screen or full drawings in GEM .IMG
  374.                file format. These can then be directly imported into such Desk
  375.                Top Publishing programs as Ventura Publisher and WordPerfect 5.0.
  376.  
  377.           o    Drawing and Pic files may be saved in compressed format to save
  378.                disk space.
  379.  
  380.           o    You can set up to ten place markers anywhere in the drawing to
  381.                jump to.
  382.  
  383.           o    Drawing grids are displayable at any spacing with optional "grid-
  384.                lock" (Snap).
  385.  
  386.           o    A pop-up status panel shows x and y cursor position, position of
  387.                the screen window in respect to the full drawing area, the
  388.                current pattern, the current cursor increment value, and more.
  389.  
  390.  
  391.  
  392.      Introduction                                                         Page 1
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.           o    An undo function repairs damage done by your last command.
  407.  
  408.           o    A preview function displays the entire drawing on the screen.
  409.  
  410.           o    A graphics presentation language called PIX performs all PC-
  411.                Draft II commands from a script you write without displaying any
  412.                cursor or menu interaction. PIX allows you to create animated
  413.                sequences of: loading screens, drawing forms and graphs and
  414.                adding text and more.
  415.  
  416.           o    Another program: CAPTURE.COM allows you to capture screen images
  417.                from other programs (both text and graphic screens), to be loaded
  418.                into PC-Draft for enhancement and printing.
  419.  
  420.           o    The latest additions to the Font, Macro, and Object libraries are
  421.                included.
  422.  
  423.  
  424.      Shareware
  425.  
  426.      PC-Draft II is copyrighted. It is not a public domain program. It is being
  427.      distributed as Shareware, which means that unmodified copies of the soft-
  428.      ware and documentation may be freely copied and shared. We ask in return
  429.      that should you find PC-Draft II to be useful, you become a registered
  430.      user. You become registered by sending $50.00 to:
  431.  
  432.  
  433.                                    Natural Software
  434.                                 19 South fifth Street
  435.                              St. Charles Illinois, 60174
  436.  
  437.  
  438.      Or call with your VISA or MasterCard number: (312) 377-7320. The file:
  439.      ORDER.FRM on the disk can be printed and used as an order form.
  440.  
  441.      What do you get by becoming registered?
  442.  
  443.      What registered users get
  444.  
  445.  
  446.  
  447.           o    The latest version of the software without the introductory
  448.                ShareWare screen.
  449.  
  450.           o    Free telephone support: You can talk directly to the author (Mike
  451.                Allen). Many of the features in this latest version of PC-Draft
  452.                came directly from suggestions and wishes from users. You can
  453.                also communicate with the author via compuserve. Send an EMAIL
  454.                message to Mike Allen (PID: 70047,744)
  455.  
  456.  
  457.  
  458.      Page 2                                                          PC-Draft II
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.           o    The latest additions to the Font, Macro, and Object libraries:
  473.                They require too much disk space to distribute with the Shareware
  474.                version. And, as a registered user you will be notified when new
  475.                libraries become available.
  476.  
  477.           o    A collection of drawings made with PC-Draft II which you can
  478.                incorporate into you own work.
  479.  
  480.           o    A typeset quality user manual profusely illustrated with drawings
  481.                made with PC-Draft II and full of helpful hints.
  482.  
  483.           o    As a registered user you will be informed of new versions of PC-
  484.                Draft.
  485.  
  486.      The shareware philosophy is to pay smaller amounts for well crafted and
  487.      useful software from developers who cannot spend the millions of dollars on
  488.      packaging and marketing necessary to compete with the large software
  489.      development companies. You benefit by being able to try a wider variety of
  490.      software products to find the ones that suit your particular purpose. And
  491.      the trial is free. The shareware developer benefits from being able to
  492.      distribute his work to a wider audience than would be possible through
  493.      normal channels.
  494.  
  495.      Your share of the responsibility for shareware to continue, and to support
  496.      the development of more and better products is to distribute your shareware
  497.      programs to others and become a registered user of those products you like
  498.      and use. 
  499.  
  500.  
  501.      System Requirements
  502.  
  503.      PC-Draft II is compatible with the IBM PC, XT, and AT and "true compatible"
  504.      microcomputers with at least 384k of memory and with MS-DOS or PC-DOS
  505.      versions 2.0 or later.  An IBM or compatible Color Graphics Display adapter
  506.      is required.  PC-Draft II performs direct access of the display buffer at
  507.      address B8000 hex.  PC-Draft II will not work with monochrome displays or
  508.      foreign display interface boards such as Hercules. (However, it will work
  509.      with one of the shareware CGA emulators such as HGCIBM or SIMCGA. Look for
  510.      them on your BBS.)
  511.  
  512.      If you have a problem with your display, you might try pressing the [Ctrl +
  513.      F1] key combination to cycle through the different colors. The is par-
  514.      ticularly necessary on the PC-Jr.
  515.  
  516.      PC-Draft II is memory hungry. For the sake of speed, an entire bit mapped
  517.      drawing is kept in memory, rather than being paged to and from disk. If you
  518.      like to load lots of stay resident utilities, you better have a 512k
  519.      machine, or unload them before running PC-Draft II.  The PC-Draft II
  520.      program itself occupies about 85k.  As you move the screen window to new
  521.  
  522.  
  523.  
  524.      Introduction                                                         Page 3
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.      portions of a large drawing more memory is allocated, 16k per screen.  If
  538.      you start with less than 128k available, you will surely get an error
  539.      message:  Out of memory!, then all you can do is save your drawing and quit
  540.      PC-Draft II.
  541.  
  542.  
  543.      Terminology
  544.  
  545.      Brackets are used to indicate keystrokes. For instance: [Ctrl + PgUp] means
  546.      to press the Control key and the PgUp keys together. Whereas: [F3][P][S]
  547.      means to press those keys in sequence. The four arrow keys on the numeric
  548.      keypad are indicated as: [v][<][>][v].  Filenames are given in all upper-
  549.      case such as: PATTERN1.PAT.
  550.  
  551.  
  552.      Installation
  553.  
  554.      If you are using a hard disk, create a sub-directory for PC-Draft II with
  555.      the following sub-directories: PAT, MAC, FON, OBJ, PIC, DWG, SCR. If you
  556.      are using DOS 3.2 or above, simply use the XCOPY command to copy all files
  557.      from all sub-directories to your pc-draft sub-directory on your hard disk
  558.      as follows:
  559.  
  560.                          CD \
  561.                          MD PC-DRAFT
  562.                          CD PC-DRAFT
  563.                          XCOPY A:*.* /S
  564.  
  565.      The sub-directory names correspond to the default filename extensions for
  566.      the various files PC-Draft II uses and will help keep things organized.
  567.  
  568.      If yours is a floppy based system, simply make a backup copy of the dis-
  569.      tribution floppy for use.
  570.  
  571.      The executable PC-Draft program consists of the main program: DRAFT2.EXE
  572.      and a configuration file: DRAFT2.CFG. This configuration file must both be
  573.      on your current directory. If you are using a floppy disk based system, you
  574.      must leave the diskette containing DRAFT.CFG in the disk drive when you
  575.      exit PC-Draft.
  576.  
  577.  
  578.      MicroSoft Mouse
  579.  
  580.      If you have a mouse compatible with Microsoft's Mouse driver software, PC-
  581.      Draft will automatically use the mouse if the mouse driver is loaded.
  582.  
  583.      Be sure the mouse driver is properly loaded (either with the CONFIG.SYS
  584.      DEVICE=MOUSE.SYS command, or from the keyboard (or in your AUTOEXEC.BAT)
  585.      run the MOUSE.COM program.
  586.  
  587.  
  588.  
  589.  
  590.      Page 4                                                          PC-Draft II
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.      Mouse movement emulates the arrow keys, the left button simulates the [F2]
  604.      key (to pop-up the menus),  the right button simulates the [Enter] key (to
  605.      terminate drawing commands and to select drawing modes when in zoom mode),
  606.      and both mouse buttons pressed together simulates the [Esc] key to exit
  607.      from a menu or process.
  608.  
  609.  
  610.      Other Mice
  611.  
  612.      Most other brands of mice should work as described above if:
  613.  
  614.      1.   They can be configured to emulate Microsoft's Mouse driver or:
  615.  
  616.      2.   You can setup your mouse to:
  617.  
  618.           a.   convert movement into the appropriate arrow key.
  619.           b.   simulate the [Enter] key with the right button.
  620.           c.   simulate the [F2] key with the left button.
  621.           d.   simulate the [Esc] key with both buttons (or the third button?).
  622.  
  623.      Please let us know if you have a problem with your mouse.
  624.  
  625.      If you do not have a mouse and intend to do much work with PC-Draft, it is
  626.      strongly recommended that you get one. You'll love the difference. Some
  627.      commands described below were specifically designed for mice. They do not
  628.      work too well without a mouse.
  629.  
  630.      If you are using the cursor keys instead of a mouse, it is strongly recom-
  631.      mended that you use one of the many shareware or public domain keyboard
  632.      speedup programs available. This will make cursor movement around the
  633.      graphics screen much nicer. If you have an IBM AT, look for SETKEY.COM on
  634.      your bulletin boards. If you have and XT or compatible, look for
  635.      QUICKEY.COM. Both of these were published in PC Magazine and can be down
  636.      loaded from their BBS. Also the shareware programs: 
  637.  
  638.                     FASTKEY.COM from:
  639.  
  640.                          Biologic Corp.
  641.                          P.O. Box 1267
  642.                          Manassas, Virginia  22110
  643.  
  644.                     and KBFIX2.COM from:
  645.  
  646.                          Skip Gilbrech
  647.                          90 Lexington Ave. #10-G
  648.                          New York, NY 10016   ( Compuserve: 71445,534 )
  649.  
  650.  
  651.      Printers
  652.  
  653.  
  654.  
  655.  
  656.      Introduction                                                         Page 5
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.      The current version of PC-Draft II will work with several families of
  671.      printers for graphics output; Some printers which claim to emulate the IBM
  672.      Graphics or Epson dot matrix do not support all resolution modes, so you
  673.      will have to experiment to see which is appropriate for your brand.
  674.  
  675.      Refer to the READ.ME file on the disk for information about additional
  676.      printer support.
  677.  
  678.  
  679.      Files used
  680.  
  681.      The only necessary files used by PC-Draft are the main code file:
  682.      DRAFT2.EXE and the configuration file: DRAFT2.CFG.  all other files are
  683.      optional.
  684.  
  685.  
  686.      File Names
  687.  
  688.      The file naming conventions used are also optional. However, it is recom-
  689.      mended that you follow them.  When PC-Draft saves a file of a particular
  690.      type, say a font file for instance, it uses the appropriate filename
  691.      extension unless you override it by entering a different extension.  This
  692.      helps prevent accidental data loss by overwriting files and by loading the
  693.      wrong type of file.
  694.  
  695.  
  696.      The default filename extensions are:
  697.  
  698.      Screen dump files:       filename.PIC
  699.      Drawing files:           filename.DWG
  700.      Pattern files:           filename.PAT
  701.      Font files:              filename.FON
  702.      Object files:            filename.OBJ
  703.      Macro files:             filename.MAC
  704.      Graph Point files:       filename.PTS
  705.      PIX program files:       filename.SCR
  706.      GEM IMG files:           filename.IMG
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.      Page 6                                                          PC-Draft II
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.                                       The Basics
  736.  
  737.      There are a few basic things you must know to start using PC-Draft and
  738.      begin making your own drawings. This chapter will give you a quick over-
  739.      view. Each drawing command and other parts of the PC-Draft system will be
  740.      dealt with in more detail in later chapters.
  741.  
  742.      Starting PC-Draft
  743.  
  744.      To start PC-Draft, type the command: DRAFT2 with the files DRAFT2.EXE and
  745.      DRAFT2.CFG on the currently logged drive. The Copyright notice will appear
  746.      for a moment, then it will display the graphics screen.
  747.  
  748.  
  749.  
  750.      Cursor Movement
  751.  
  752.      The cursor will appear as a small cross in center screen.  Press the cursor
  753.      movement keys on the numeric keypad (or move the mouse) to move about the
  754.      screen.
  755.  
  756.      Initially, the cursor will move 8 dots for each key pressed. As you move
  757.      the cursor you will notice that the X and Y location is shown in the
  758.      control panel at screen right. Also shown is the current cursor increment
  759.      value. With a mouse, the cursor moves smoothly along with the mouse move-
  760.      ment. You may find that for precise positioning, the arrow keys give you
  761.      more control. 
  762.  
  763.      Cursor Increment
  764.  
  765.      The amount the cursor moves (in dots or pixels) is called the cursor incre-
  766.      ment. To change the cursor increment value, enter a number (using the top
  767.      row of number keys, or press [Num Lock] to use the numeric key pad keys). 
  768.      For instance, enter 24 to cause the cursor to move 24 dots for each cursor
  769.      movement keystroke.
  770.  
  771.      You will quickly get into the habit of adjusting the cursor increment value
  772.      to a larger number to quickly move to a new position on the screen, then to
  773.      a smaller number (try 1) for detailed work.
  774.  
  775.      Suspend Cursor
  776.  
  777.      Pressing the [S] key Suspends the current cursor increment value, causing
  778.      the cursor to move one dot at a time.  Pressing [S] again restores the
  779.      increment value.  This allows you to quickly change from coarse to fine
  780.      movements and is also useful when creating graphics keyboard macros as
  781.      described below. Note that while in the [W]rite mode, you can suspend
  782.      cursor increment by pressing [Alt + S].
  783.  
  784.  
  785.  
  786.  
  787.  
  788.      Basics                                                               Page 7
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.      Change Cursor
  802.  
  803.      There are two cursor types (three if you have a mouse).  Initially, the
  804.      cursor appears as a small cross.  Press [K] ([K]ursor) to change the cursor
  805.      to a full screen cross.  This cursor type is helpful when positioning lines
  806.      and objects in line with other elements in your drawing. Press [K] again to
  807.      toggle between the two cursor types. If you have a MicroSoft mouse, you can
  808.      change the mouse cross cursor to an arrow by pressing [Alt + C]. Press it
  809.      again to return to the cross. You can still use the full screen cursor by
  810.      pressing [K].
  811.  
  812.  
  813.      Menu Selections
  814.  
  815.      Initially, the eight main menu selections are displayed across the top of
  816.      the screen. To make a selection, press its corresponding function key.  For
  817.      instance, press [F2] (or the [/] key) (or left mouse button) to display the
  818.      pop-up Draw functions menu.
  819.  
  820.      With the pop-up menu displayed you may now:
  821.  
  822.      1.   Press the Escape key: [Esc] (both mouse buttons), to exit from a menu
  823.           without making a choice.
  824.  
  825.      2.   Select a choice from the menu by:
  826.  
  827.           a.   press the [L]etter in brackets for your choice.
  828.           b.   use the arrow keys: [^] and [v] to move the reverse video cursor
  829.                to select your choice.  Then press [Enter] (or the mouse right
  830.                button) to make your selection.
  831.  
  832.      3.   Press the left or right arrow keys: [<] or [>] to move to another menu
  833.           (or move the mouse right or left).
  834.  
  835.      For example; press [F2], then press [B] for the [B]ox command, then press
  836.      [Enter]. The Draw menu will disappear.  Now, move the cursor. A box will
  837.      form with its diagonal corners determined by the original cursor position
  838.      and the opposing current cursor position.  When you are satisfied with the
  839.      final position of the box, press [Enter] (right mouse button) to complete
  840.      the [B]ox command.
  841.  
  842.      Most of the other menus work the same, press the function key, then up and
  843.      down arrows, then [Enter].
  844.  
  845.      Display Menu Bar
  846.  
  847.      By pressing the [F1] key, you can pop-off the menu bar to allow full screen
  848.      drawing.  When you press [F1] again, the menu bar will pop-up again. The
  849.      drawing obscured by the menu, will be untouched, but inaccessible, until
  850.      you pop-off the menu.
  851.  
  852.  
  853.  
  854.      Page 8                                                          PC-Draft II
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.      The Control Panel
  869.  
  870.      The panel along the right side of the screen shows:
  871.  
  872.      o    The current X and Y cursor location,
  873.      o    The current cursor increment value (C = 8),
  874.      o    The current drawing mode,
  875.      o    The status of the suspend (cursor increment) function,
  876.      o    The status of the snap function,
  877.      o    The current paint pattern is shown,
  878.      o    Below the pattern box, is a box that represents the full drawing are-
  879.           a. Within is a smaller box representing the current screen window. As
  880.           you move the screen window (with [Ctrl + >] for example), the box will
  881.           show your current location.
  882.      o    The number under the drawing box indicates the number of the current
  883.           screen window. This is the number you would enter when using the [.]
  884.           Move command to jump directly to a new screen window position.
  885.      o    The amount of free memory is shown at the bottom. As you move the
  886.           screen window to new areas of the full drawing, you will notice this
  887.           number getting smaller.
  888.  
  889.      You can pop-off the control panel by pressing [Alt + P] for full screen
  890.      drawing.
  891.  
  892.      The Drawing Area
  893.  
  894.                               +----+----+
  895.                Initial        |  1 |  2 | +----+----+
  896.                Screen   --->  +----+----+ |  3 |  4 |
  897.                Window         |  5 |  6 | +----+----+
  898.                               +----+----+ |  7 |  8 |
  899.                                 +----+----+----+----+
  900.                                 |  9 | 10 | 11 | 12 |
  901.                                 +----+----+----+----+
  902.                                 | 13 | 14 | 15 | 16 |
  903.                                 +----+----+----+----+
  904.                                 | 17 | 18 | 19 | 20 |
  905.                                 +----+----+----+----+
  906.                                 | 21 | 22 | 23 | 24 |
  907.                                 +----+----+----+----+
  908.                                 | 25 | 26 | 27 | 28 |
  909.                                 +----+----+----+----+
  910.  
  911.                                    The Drawing Area
  912.  
  913.      One screen represents 640 pixels or dots horizontally, and 200 dots verti-
  914.      cally (with the menu bar and control panel popped-off).  All drawing
  915.      operations are confined to this screen area.  You can draw a line to the
  916.      screen edge only.  However, the full drawing area available to PC-Draft is
  917.  
  918.  
  919.  
  920.      Basics                                                               Page 9
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.      1280 dots wide by 700 dots vertically. visualize the monitor screen as a
  934.      window positioned over a larger drawing area.  You can move this window up,
  935.      down, left and right to reach all parts of the drawing. The full drawing
  936.      size is two screens wide, and three and one half screens high.
  937.  
  938.      Moving around
  939.  
  940.      Here's how you move the screen window around the full drawing. To move the
  941.      screen window down on the larger drawing, press the [Ctrl + PgDn] keys
  942.      together. The screen moves one half screen width for each window movement.
  943.      To move up, press [Ctrl + PgUp]. [Ctrl + >] moves right, and [Ctrl + <]
  944.      moves left. When you reach the edge of the drawing area, you'll know it
  945.      (beep).
  946.  
  947.      Direct Move
  948.  
  949.      Pressing the [.] (the period or shifted [>]) key will pop-up a prompt box
  950.      asking for a screen window number. You can enter a number from 1 to 28 to
  951.      directly move the display window to a new area of the larger drawing.
  952.  
  953.      The full drawing is logically divided into 28 sections. Each section
  954.      represents one forth of one screen's area.
  955.  
  956.      When PC-Draft is first started, drawing sections 1, 2, 5 and 6 are display-
  957.      ed. To move the screen window to the bottom right of the drawing area;
  958.      press [.] and enter 23 to display drawing sections 23, 24, 27 and 28.
  959.  
  960.      Home
  961.  
  962.                Press [H] to move the cursor to center screen.
  963.  
  964.  
  965.      Using markers
  966.  
  967.      Sometimes you would like to set a marker at one point in your drawing to be
  968.      able to return to the same position after performing some other activity.
  969.      PC-Draft II provides a facility for up to ten separate markers that you can
  970.      set, change, and move to.
  971.  
  972.      Setting markers
  973.  
  974.      First move the cursor to the position you wish to mark. Then: Press [Shift
  975.      + any function key]. For example [Shift + F1].
  976.  
  977.      Jump to marker
  978.  
  979.      Press [Alt + the function key]. For example to jump back to the position
  980.      set with [Shift + F1], press [Alt + F1].
  981.  
  982.  
  983.  
  984.  
  985.  
  986.      Page 10                                                         PC-Draft II
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.      If you have moved the screen window to another area of the full drawing,
  1000.      from where a marker is set, the screen window will be moved as necessary to
  1001.      return to where the marker is set. This provides a convenient way to jump
  1002.      to all parts of a large drawing.
  1003.  
  1004.  
  1005.      Clearing the Screen
  1006.  
  1007.      To clear the current screen window (not the whole drawing), press the [F9]
  1008.      key.  A warning pop-up will ask if you're sure.  Press the [Y] key for
  1009.      [Y]es, if you are.
  1010.  
  1011.      To clear the entire drawing, press [Ctrl + F9]. A warning pop-up will ask
  1012.      if you're sure.  Press the [Y] key for [Y]es, if you are.
  1013.  
  1014.      Erasing
  1015.  
  1016.      Since this is a pixel (raster) based graphics program, erasing selected
  1017.      image areas is not as easy as it would be in an object based CAD package
  1018.      where you can erase selected operations rather than areas of the screen.
  1019.      Here are a few different ways to erase:
  1020.  
  1021.           o    Use the [E]rase command to remove the image as you move the
  1022.                cursor. The size of the erase box is controlled by the current
  1023.                cursor increment value. Make this value larger to erase larger
  1024.                areas. (The Replace drawing mode must be on.)
  1025.  
  1026.                Note: if you do not have a mouse, erasing with the cursor keys is
  1027.                not as smooth an operation. Suspend the cursor increment value
  1028.                (with the [S] key), then as you move the erase box, you will
  1029.                remove all pixels in your path.
  1030.  
  1031.           o    Select the Transparent drawing mode (with [F5]), then re-trace
  1032.                the image to be erased.
  1033.  
  1034.           o    Select an all black pattern (with [F4], usually pattern number
  1035.                1), then with the [R]ectangle command, surround the area to be
  1036.                erased. The drawing mode must be set to Replace. (The Replace
  1037.                drawing mode must be on.)
  1038.  
  1039.           o    Surround the area to be erased with the [W]indow command, then
  1040.                press [F9] to clear the current window.
  1041.  
  1042.      Undo Command
  1043.  
  1044.      Whenever you have performed some drawing operation that changed the drawing
  1045.      in a way you did not expect (you goofed), you can press [U] to Undo. You
  1046.      can only undo the previous operation such as [B]ox or [P]aint, you cannot
  1047.      undo changes made before the last one. This is especially handy when your
  1048.      [P]aint operation spills outside of a bounded area unexpectedly.
  1049.  
  1050.  
  1051.  
  1052.      Basics                                                              Page 11
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.      Saving Your Work
  1067.  
  1068.      Once enough of your masterpiece is constructed to make you nervous about
  1069.      losing your work, you should save it to a file on disk.  You can save the
  1070.      current screen window to a .PIC file or you can save the entire drawing to
  1071.      a .DWG file.
  1072.  
  1073.           1.   Press the [F3] key to pop-up the File menu.
  1074.  
  1075.           2.   Select [S]creen to save just the current screen window (just what
  1076.                is currently displayed).
  1077.  
  1078.      Or, select [D]rawing to save your drawing that may consist of several
  1079.      screens worth. (Only those screens that you have visited will be saved. If
  1080.      you have not moved from the initial screen window, the drawing file will be
  1081.      the same size as a screen ".PIC" file.)
  1082.  
  1083.           3.   Then, select the operation from the next pop-up: [S]ave. 
  1084.  
  1085.           4.   you will be asked whether you want to save it in [C]ompressed or
  1086.                [N]ormal format. If you choose Normal format, the image will be
  1087.                saved without compression. An un-compressed .PIC file is a
  1088.                straight byte for byte dump of the high-resolution screen buffer
  1089.                and is compatible with many other graphics programs. If you
  1090.                choose Compressed format, the file will take less disk space
  1091.                (saving an average of 66%).
  1092.  
  1093.      When you read in a .PIC or .DWG file, PC-Draft will detect whether the file
  1094.      has been compressed or not and load it properly.
  1095.  
  1096.                Note: The I/O time is increased for saving and loading compressed
  1097.                files. You might want to use normal format while you are working
  1098.                on a drawing to maintain the speed advantage, then save it in
  1099.                compressed format only when you are finished making changes.
  1100.  
  1101.      The compression method is very rudimentary. A trade-off had to be made
  1102.      given code space limitations and permissible I/O delays. You can achieve a
  1103.      much greater compression and saving of disk space if you use ARC.EXE to
  1104.      archive your drawings (sometimes greater than 90%).
  1105.  
  1106.           5.   Then, enter a filename in the next pop-up.  Enter any valid DOS
  1107.                file path specification, including drive and sub-directories
  1108.                unless you want to save the file on the currently logged drive
  1109.                and path.
  1110.  
  1111.      You need not enter a filename extension. PC-Draft will automatically add
  1112.      the appropriate extension for you if you leave it off.  Simply enter a
  1113.      filename such as: "DRAWING1" or "A:SUBDIR1\DRAWING1"
  1114.  
  1115.  
  1116.  
  1117.  
  1118.      Page 12                                                         PC-Draft II
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.      PC-Draft will save your drawing as: DRAWING1.DWG (or: DRAWING1.PIC if you
  1132.      selected to save the screen). (See note below for directory searches.)
  1133.  
  1134.           6.   Press [Enter] to complete the operation.
  1135.  
  1136.      Once you've done this a few times, the operation of saving and retrieving
  1137.      screen and drawing files should become easy, intuitive and obvious with the
  1138.      help of the pop-up prompts.  The method is the same for other file opera-
  1139.      tions such as saving and retrieving patterns, fonts, objects.
  1140.  
  1141.      Directory Search
  1142.  
  1143.      When entering a filename for any file operation, you can obtain a directory
  1144.      search by pressing either the up or down arrow keys [^] or [v]. Any exist-
  1145.      ing files with extensions that match the current default will be displayed
  1146.      in the file path name window. For example, when you are retrieving a screen
  1147.      file, press the [^] key in response to the filename prompt, the name of the
  1148.      first file with a .PIC extension will be shown. Press the [^] to show the
  1149.      next (if any) .PIC file, and so on.  When the file you want to retrieve is
  1150.      shown, press [Enter] to retrieve it.
  1151.  
  1152.      To search the directory other than the current one, enter the DOS path
  1153.      information, for instance to refer to the directory containing pattern
  1154.      files, enter: "FON\", then press [^] or [v]. (You must have the '\' at the
  1155.      end.)
  1156.  
  1157.      Other useful keys to use when entering filenames:
  1158.  
  1159.      o    [<] and [>] move the cursor non-destructively.
  1160.  
  1161.      o    Backspace [<-] moves left destructively.
  1162.  
  1163.      o    The [End] key clears the field from the cursor position to the end.
  1164.  
  1165.      o    The [Esc] key restores the field to its original contents.
  1166.  
  1167.  
  1168.      Ending PC-Draft
  1169.  
  1170.      Press [F10] to exit PC-Draft. If you have made changes to your drawing but
  1171.      not saved it yet, a warning pop-up will ask if you want to. Similarly,
  1172.      changes to the current font, pattern and/or graph point values, will be
  1173.      checked and you will be warned before actually exiting to DOS. If everyth-
  1174.      ing is safely saved, when you press [F10] you will immediately be returned
  1175.      to the DOS prompt.
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.      Basics                                                              Page 13
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.                                    Drawing Commands
  1198.  
  1199.      This chapter discusses each drawing command in detail. PC-Draft provides
  1200.      both a menu based and a command based user interface. When you begin to
  1201.      learn how PC-Draft works you might find the drawing menu useful in select-
  1202.      ing the various commands. But as you become more proficient, you will
  1203.      probably find the single key command method easier and faster.
  1204.  
  1205.      Each basic drawing operation can be specified in two ways.  You can press
  1206.      [F2] (or mouse left button) to choose from the Draw menu, or you can press
  1207.      the mnemonic character associated with the command.  For example to select
  1208.      the line command either press [F2] then press [v] enough times to move the
  1209.      menu selection bar down to the "[L]ine" choice, then press [Enter] or you
  1210.      can choose from the menu by pressing: [F2][L][Enter] or don't use the menu
  1211.      at all: simply press [L] (the single key command mode).
  1212.  
  1213.      Most drawing operations follow the same sequence of operations: 
  1214.  
  1215.      1.   Position the cursor to a starting anchor point.
  1216.      2.   Select the drawing command.
  1217.      3.   Move the cursor to the desired ending point.
  1218.      4.   Press any key other than cursor movement or numeric key to complete
  1219.           the operation.
  1220.  
  1221.      Remember, at any time while moving the cursor, you can fine tune cursor
  1222.      movement or speed up cursor movement by pressing the numeric keys to change
  1223.      the current cursor increment.  Also you can press the [S] key to [S]uspend
  1224.      the cursor increment for fine work, and the [K] key to change cursor type.
  1225.  
  1226.      Line
  1227.  
  1228.      The basic element of most of your drawings is the line. The method for
  1229.      drawing lines is typical of most of the other drawing commands as well,
  1230.      involving these four steps:
  1231.  
  1232.      1.   Move the cursor to one end of the future line.
  1233.      2.   Press [L] to start the line.
  1234.      3.   Move the cursor to the other end.
  1235.      4.   Press [Enter].
  1236.  
  1237.      I think you get the idea.
  1238.  
  1239.      Multi-Line
  1240.  
  1241.      If you want to draw several connected line segments, use the [M]ulti-line
  1242.      command. Press [M] to start, move the cursor to the end point, press
  1243.      [Enter] to anchor that end, move to the next end point, press [Enter], and
  1244.      so on. Press [Esc] to end the multi-line command.
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.      Page 14                                                         PC-Draft II
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.      Free Draw
  1264.  
  1265.      The [F]ree draw command lets you draw free form lines. A continuous series
  1266.      of connected lines are drawn as you move the cursor. The coarseness of the
  1267.      line is determined by the value of the cursor increment (or how fast you
  1268.      move the mouse). Set the cursor increment value to 1 (or [S]uspend) to draw
  1269.      free form lines dot by dot (or move the mouse slower).
  1270.  
  1271.      Box
  1272.  
  1273.      Press [B] to begin the [B]ox command. The starting position is one corner
  1274.      of the box, the ending cursor position is the opposite corner.
  1275.  
  1276.      Rectangle
  1277.  
  1278.      This is similar to [B]ox, but the rectangle is filled with the current fill
  1279.      pattern. The [R]ectangle command is useful for erasing areas of the draw-
  1280.      ing, by selecting a completely blank pattern as the current fill (and the
  1281.      [R]eplace drawing mode). See below for how to select patterns.
  1282.  
  1283.      Circle
  1284.  
  1285.      Press [C] to draw a circle. The starting position is the center of the
  1286.      circle. Move the cursor outward to establish the diameter and press
  1287.      [Enter]. 
  1288.  
  1289.      Ellipse
  1290.  
  1291.      From the keyboard you start the ellipse command with [Alt + E]. As you move
  1292.      the cursor, the area of the ellipse is indicated by a rectangle. Move the
  1293.      cursor outward to establish the size of the ellipse and press [Enter]. Why
  1294.      use the rectangle instead of the ellipse shape? We decided that drawing,
  1295.      erasing, and re-drawing the actual ellipse shape as you move the cursor was
  1296.      too slow, interfering with the normal flow of drawing. 
  1297.  
  1298.      Note that from the drawing commands menu, you select the ellipse command
  1299.      with the [I] key.
  1300.  
  1301.      Curve
  1302.  
  1303.      This command works a little differently than the above two-point commands.
  1304.      You specify a series of points on the screen through which a smooth spline
  1305.      curve will be drawn. Position the cursor to the starting point for the
  1306.      curve, then press [V] for cur[V]e. Now, move the cursor to the next point,
  1307.      press any key to set a new point. A straight line will be temporarily drawn
  1308.      between points to help you keep track of the shape of your image. Continue
  1309.      entering points (up to 20 points are allowed) until you have defined the
  1310.      shape of the curve. To draw the curve, press the [Esc] key.
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.      Drawing Commands                                                    Page 15
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.      Paint
  1330.  
  1331.      Position the cursor within a bounded area on the screen. Press [P] to
  1332.      [P]aint the area with the current fill pattern. See below for how to select
  1333.      and edit patterns. Note that the selected area must be tightly bounded by
  1334.      white dots. A single missing dot provides an escape route for the pattern
  1335.      to fill adjacent areas.
  1336.  
  1337.      Arc
  1338.  
  1339.      Drawing arcs is a two step process:
  1340.  
  1341.      1.   Draw a circle where you want the arc with the correct diameter.
  1342.  
  1343.           a.   Position the cursor to the center of the arc.
  1344.           b.   Press [A] to start the arc command.
  1345.           c.   Move the cursor outward to establish the diameter. (A full circle
  1346.                will be drawn temporarily.)
  1347.           d.   Press [Enter] to set the diameter.
  1348.  
  1349.      2.   Now draw a box around the portion of the circle you want to retain as
  1350.           the arc:
  1351.  
  1352.           a.   Position the cursor to one corner of the box.
  1353.           b.   Move to the opposite corner surrounding the selected portion of
  1354.                the circle.
  1355.           c.   Press [Enter] to complete the arc command.
  1356.  
  1357.      Text
  1358.  
  1359.      To add text to your drawing, position the cursor and press [T] to enter
  1360.      [T]ext mode. The cursor will become an underline and what you type next
  1361.      will be shown using the built-in IBM graphics font. You can use backspace
  1362.      and the [<] and [>] arrow keys for simple editing and the [Enter] key to
  1363.      move to the start of the next line. 
  1364.  
  1365.      To exit text mode, press [Esc]. 
  1366.  
  1367.      Note: that this mode always positions the text on an 8 dot boundary both
  1368.      vertically and horizontally. To position the text between this 8 dot grid,
  1369.      first type the text, then exit text mode and use the [O]bject and [D]rop
  1370.      commands to move it to a new location.
  1371.  
  1372.      As you type, the cursor will wrap to the next line when you reach the right
  1373.      edge of the current window. You can set a smaller window with the [Alt + W]
  1374.      key to restrict the text to a selected area.
  1375.  
  1376.      Another way to add text is to import from an ASCII text file. You do this
  1377.      by adding two characters to your text file, a 'T' at the beginning and a
  1378.  
  1379.  
  1380.  
  1381.  
  1382.      Page 16                                                         PC-Draft II
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.      '%' at the end. this makes the file a valid PC-Draft Macro file. Refer to
  1396.      the Macro section for an example.
  1397.  
  1398.      Write
  1399.  
  1400.      Pressing [W] places you in [W]rite mode. The cursor changes to a box the
  1401.      size of the currently loaded graphics font. When first started PC-Draft
  1402.      does not have a font loaded. To experiment with [W]rite mode, press
  1403.      [F3][F][R] to retrieve a font. In the filename pop-up prompt box enter:
  1404.      FON\EURO and press [Enter]. The eurostyle font will be loaded from the font
  1405.      sub-directory: FON. Now enter [W]rite mode. You can move the box cursor
  1406.      with the arrow keys and enter text in your drawing.
  1407.  
  1408.      While in [W]rite mode you can suspend cursor increment by pressing
  1409.      [Alt + S], since the [S] key is used to write S's.
  1410.  
  1411.      Object
  1412.  
  1413.      By Object, we mean a portion of the drawing, a bit mapped image. The
  1414.      [O]bject command allows you to grab an area of the drawing from within the
  1415.      current screen window. Once you have grabbed an area, you've got an object
  1416.      which can then be [D]ropped (re-drawn) in a new position. Also objects can
  1417.      be saved in a file (.OBJ files) to create a library of objects. And, of
  1418.      course, object files can be retrieved to be added to other drawings.
  1419.  
  1420.      This command works like the [B]ox command. Position the cursor to one
  1421.      corner of the area to be grabbed. Press [O]. Then move the cursor to the
  1422.      opposite corner of the area and press [Enter] to grab it.
  1423.  
  1424.           Note:  The [O]bject and [D]rop commands allow for copying areas of the
  1425.           screen. If you want "Cut and Paste" -- deleting the original object
  1426.           area, use the "blank pattern" method for erasing as described in the
  1427.           previous chapter. So, you would: grab an [O]bject, erase it with
  1428.           [R]ectangle, then [D]rop the object.
  1429.  
  1430.      Drop Object
  1431.  
  1432.      When you have an Object currently in memory either by using the [O]bject
  1433.      command or by retrieving it from an .OBJ file, you use the [D]rop command
  1434.      to re-draw the object in the current drawing.
  1435.  
  1436.      When you press [D], the cursor takes the form of a box the size of the
  1437.      current object. Move the box to the position in your drawing where you want
  1438.      the image and press [Enter].
  1439.  
  1440.      Object Functions
  1441.  
  1442.      When you have an Object in memory as discussed above, you can manipulate it
  1443.      in several ways. All of the following commands are accessible only by
  1444.      selecting [O]bject from the Draw menu:
  1445.  
  1446.  
  1447.  
  1448.      Drawing Commands                                                    Page 17
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462.           r[O]tate       turns the current object 90 degrees clockwise. Rotate
  1463.                          twice to turn the current object upside down,
  1464.  
  1465.           [R]everse      reverses the object from left to right,
  1466.  
  1467.           [E]nlarge      doubles the width of the current object,
  1468.  
  1469.           [C]ontract     halves the width of the object,
  1470.  
  1471.           [L]arge        doubles the height of the current object,
  1472.  
  1473.           [S]mall        halves its height.
  1474.  
  1475.      Although nothing seems to happen on the screen, the current Object will be
  1476.      affected in memory, which you can see by [D]roping it.
  1477.  
  1478.           Note: that for the sake of processing speed, objects are stored and
  1479.           manipulated on byte boundaries. If you do not get the result you want
  1480.           with one of the object commands. (Perhaps a part of the object is
  1481.           truncated.) Try re-grabbing the object with a greater margin (of blank
  1482.           space) around it. Then the manipulating commands will not affect the
  1483.           edges.
  1484.  
  1485.      Transfer to Font
  1486.  
  1487.      This command ([X]fer) is like the [O]bject command. With [X]fer, you grab
  1488.      an area of the drawing to be copied to a specific character in the current
  1489.      graphics font. When you press [X], the cursor becomes a box the size of the
  1490.      current font. Move the box to the image to be grabbed and press the key for
  1491.      the character to copy to. For example, to grab an image to use for the A
  1492.      character, press [A]. You can then move to another area and grab again for
  1493.      another character. Press [Enter] to exit this mode.
  1494.  
  1495.           Note: that you cannot [X]fer to numeric characters (0 to 9), or the
  1496.           [S] key because these keys are used to change the cursor increment
  1497.           value. First [X]fer the image to another temporary character. Then use
  1498.           the font copy function: [F10] (from the font editing window) to copy
  1499.           from the temporary to the one you want.
  1500.  
  1501.      Zoom
  1502.  
  1503.           [Z]oom allows you to edit a portion of your drawing at the pixel level
  1504.           more easily by enlarging the dots. Position the cursor in the center
  1505.           of the area to zoom and press [Z]. When the box appears, you can move
  1506.           the cursor with the arrow keys. The [Ins] key (mouse right button)
  1507.           toggles pixels on or off. When the cursor is over a blank space,
  1508.           pressing [Ins] will turn on the pixel there. When the cursor is over a
  1509.           pixel already on, pressing [Ins] will turn it off.
  1510.  
  1511.  
  1512.  
  1513.  
  1514.      Page 18                                                         PC-Draft II
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.      The [F9] (mouse left button) key lets you cycle through three drawing
  1528.      modes:
  1529.  
  1530.      o    Press [F9] once to draw pixels as you move.
  1531.      o    Press [F9] again to erase as you move.
  1532.      o    Press [F9] again and you are back to the original state, no change
  1533.           will be made as you move the cursor.
  1534.  
  1535.      While in Zoom mode these function keys perform new functions:
  1536.  
  1537.           [F1] shifts the zoomed image left one pixel.
  1538.           [F2] shifts the zoomed image right.
  1539.           [F3] fills the zoomed area (all white).
  1540.           [F4] clears the zoomed area (all black).
  1541.           [F5] reverses each pixel in the zoomed area.
  1542.           [F8] will print the screen with the zoom window.
  1543.  
  1544.  
  1545.      Goodies
  1546.  
  1547.      The following additional commands are accessible by menu from the goo[D]ies
  1548.      sub-menu. To see these selections, press [F2][D].
  1549.  
  1550.      Just paint
  1551.  
  1552.      Press the [J] key to begin the Just Paint mode. In this mode, as you move
  1553.      the cursor, a trail of the current pattern is left. The size of this trail
  1554.      is determined by the current cursor increment value. Like the Spray Can
  1555.      command, this works best with a mouse.
  1556.  
  1557.      To end Just Paint mode press [Esc] or both mouse buttons.
  1558.  
  1559.      SpraY Can
  1560.  
  1561.      Each time you press the [Y] key a random spray of pixels is painted within
  1562.      the bounds of the current cursor increment value using the current pattern.
  1563.      As the key is repeated, more pixels will be filled in. This command is more
  1564.      useful (easier to use) if you have a mouse, because you can move the mouse
  1565.      as you hold down the right button to spray in a continuous line, whereas,
  1566.      without the mouse, the cursor jumps by the current cursor increment value.
  1567.  
  1568.      If the current drawing mode is Transparent, the Spray Can command will
  1569.      always fill approximately 50% of the area (if you hold the [Y] down) since
  1570.      as new random pixels are drawn they will cancel out existing pixels.
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.      Drawing Commands                                                    Page 19
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.      When the drawing mode is set to "replace", blank pixels in the current
  1594.      pattern also affect (erase) the underlying image. If the drawing mode is
  1595.      set to "overlay", only "on" pixels in the pattern are painted. You can see
  1596.      how this works if you:
  1597.  
  1598.      1.   Select the solid pattern (pattern 0).
  1599.      2.   Select the Replace drawing mode.
  1600.      3.   Use the [R]ectangle command to draw a solid box.
  1601.      4.   Select another pattern with some empty space such as lines.
  1602.      5.   Start the Spra[Y] command, and draw the spray across the solid box.
  1603.           You will notice that the pattern is slowly etched into the solid area.
  1604.      6.   Now, change the drawing mode to Overlay and try step 4 and 5 again.
  1605.  
  1606.      Kursor
  1607.  
  1608.      This toggles the cursor shape back and forth from the small x to the full
  1609.      screen cross.
  1610.  
  1611.      Mouse cursor
  1612.  
  1613.      If you are using a MicroSoft compatible mouse, this command changes to the
  1614.      arrow cursor. From the keyboard press [Alt + C]. Select this command again
  1615.      to return to the normal cursor.
  1616.  
  1617.      grId
  1618.  
  1619.      To aid in positioning the cursor in line with other elements in your
  1620.      drawing, press [I] to draw a grid. The grid will be spaced horizontally and
  1621.      vertically according to the current cursor increment value. For example,
  1622.      before pressing [I], enter [48] to set your cursor increment to 48 pixels,
  1623.      then when you press [I] a 48 by 48 grid will appear.
  1624.  
  1625.      Note: When the grid is on, the drawing mode is always set to Transparent.
  1626.      This is so that the grid does not interfere with the actual drawing.
  1627.      However, you must be careful when you add drawing elements with the grid
  1628.      on, that you account for transparent mode. Also, when you grab an object
  1629.      with the grid on, the grid will be grabbed as well, so again, be careful.
  1630.      Remember this is a pixel graphics program not an object oriented CAD
  1631.      package where true layering would be more possible.
  1632.  
  1633.      The grid is always drawn in relationship to the full drawing area rather
  1634.      than just the screen. This means that as you move the screen window the
  1635.      grid is redrawn and adjusted for that window with its starting point
  1636.      remaining at the upper left corner of the full drawing area.
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.      Page 20                                                         PC-Draft II
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.      Quick view
  1660.  
  1661.      This displays the full drawing in one screen window to give you an overall
  1662.      view. From the keyboard press [Q]. Press the [Esc] key to return to the
  1663.      normal drawing.
  1664.  
  1665.      sNap
  1666.  
  1667.      When you press [N] to turn snap on, the cursor will snap into position on a
  1668.      grid intersection (whether grid is on or not). The grid intersection in
  1669.      question is determined by the current cursor increment value in relation-
  1670.      ship to the upper left corner of the full drawing area (as is true for the
  1671.      grid command above). This means that even if you have grid on, if you then
  1672.      change the cursor increment, then you turn snap on, the cursor will snap to
  1673.      the new cursor increment grid, not the grid displayed.
  1674.  
  1675.      Snap is one command that does not work well with the mouse, use the cursor
  1676.      keys instead.
  1677.  
  1678.      Color
  1679.  
  1680.      This changes the foreground color to one of the possible 15 standard IBM
  1681.      Color Graphic Adapter colors. From the keyboard press [Ctrl + F1]. Each
  1682.      time you execute this command, the color is cycled to the next in the list,
  1683.      eventually repeating.
  1684.  
  1685.      Window
  1686.  
  1687.      The [W]indow command allows you to designate a rectangular area of the
  1688.      screen to contain subsequent drawing operations. Once you have created a
  1689.      smaller than normal window (normally the drawing window is the full
  1690.      screen), the cursor will not move outside the borders of your window and
  1691.      lines and fills will not spill out. You specify the area of the window
  1692.      similar to the way you draw a box. Position the cursor to a staring corner,
  1693.      press [Alt + W], move to an opposite corner, press [Enter]. To undo the
  1694.      window, press [Alt + W] again. This command is not on the menu. 
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.      Drawing Commands                                                    Page 21
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721.  
  1722.  
  1723.  
  1724.  
  1725.                                        Patterns
  1726.  
  1727.      Patterns are created as 8 by 8 pixel grids which are repeated to fill
  1728.      areas. PC-Draft keeps 8 patterns resident in memory at a time which are
  1729.      used by the [R]ectangle and [P]aint commands to fill areas and by the
  1730.      spra[Y] and [J]ust paint commands. Patterns are stored in .PAT files in the
  1731.      PAT sub-directory. You can create your own patterns or edit those that come
  1732.      with PC-Draft. The Patterns may be seen on the Pattern menu by pressing
  1733.      [F4].
  1734.  
  1735.      Loading Patterns
  1736.  
  1737.      Press the sequence: [F3][P][R] for "File menu, [P]atterns, [R]etrieve".
  1738.      Then in the filename prompt box, enter: [PAT\], then press [^] or [v] to
  1739.      step through the directory of patterns. Press [Enter] to retrieve a pat-
  1740.      tern.
  1741.  
  1742.      Selecting Patterns
  1743.  
  1744.      Press [F4] to display the list of current patterns. Either press the number
  1745.      of the pattern you want, or move the arrow cursor to point to it, then
  1746.      press [Enter] to make it the current pattern.
  1747.  
  1748.      Creating and changing Patterns
  1749.  
  1750.      Once you have selected a pattern as "current", return to the pattern pop-up
  1751.      by pressing [F4], then press [E] to edit the current pattern. Within the
  1752.      pattern editing box, you will see happy faces representing pixels that are
  1753.      "on". The cursor position is shown as a small box when over an "off" pixel
  1754.      and as a solid face when over an "on" pixel.
  1755.  
  1756.      You can move with the arrow keys (or mouse) and toggle pixels on and off
  1757.      with the space bar (mouse left button).
  1758.  
  1759.  
  1760.      Saving Patterns
  1761.  
  1762.      If you create your own patterns, you must save them in a .PAT file. Press
  1763.      [F3][P][S] for: "File menu, [P]atterns, [S]ave". Enter a filename (no
  1764.      extension, PC-Draft will add .PAT as the default extension).
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.      Page 22                                                         PC-Draft II
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.                                        Objects
  1792.  
  1793.      Above we discussed Objects and how to grab an area of the drawing as an
  1794.      object with the [O]bject command and then [D]ropped in a new position.
  1795.      Objects can also be saved in a file for later retrieval.
  1796.  
  1797.      Saving Objects
  1798.  
  1799.      To save your current object (after you have performed an [O]bject command),
  1800.      press [F3][O][S] for: "File menu, [O]bject, [S]ave". Then enter a filename
  1801.      (PC-Draft will add the default .OBJ filename extension).
  1802.  
  1803.  
  1804.      Retrieving Objects
  1805.  
  1806.      PC-Draft comes with several example object files in the OBJ sub-directory.
  1807.      Press [F3][O][R] to retrieve an object. In the filename prompt box enter:
  1808.      [OBJ\] and press [^] or [v] to step through the object directory. Press
  1809.      [Enter] to retrieve.
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.  
  1830.  
  1831.  
  1832.  
  1833.  
  1834.  
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840.  
  1841.  
  1842.  
  1843.  
  1844.      Objects                                                             Page 23
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.  
  1853.  
  1854.  
  1855.  
  1856.  
  1857.                                         Fonts
  1858.  
  1859.      With PC-Draft you can load, edit and create a variety of fonts. Each font
  1860.      is stored as a file with a .FON extension.  Fonts may consist of characters
  1861.      or may be all symbols.
  1862.  
  1863.  
  1864.      Using Fonts
  1865.  
  1866.      You can load an existing font by pressing: [F3][F][R] for: "File menu,
  1867.      [F]ont, [R]etrieve". In the filename prompt box, enter: "FON\" and press
  1868.      [^] or [v] to step through the font directory. Press [Enter] to retrieve.
  1869.  
  1870.      Once you have loaded a font, when you press [W] (for [W]rite) the cursor
  1871.      becomes a box the size of the font. Some fonts contain only a subset of the
  1872.      alphabet. So, if nothing happens when you try to type a character in
  1873.      [W]rite mode, perhaps the current font has no character defined for that
  1874.      key. Try uppercase. To leave [W]rite mode, press [Enter] or [Esc].
  1875.  
  1876.  
  1877.      Creating, changing Fonts
  1878.  
  1879.      Press [F6] to pop-up the font editing window. You will see the filename of
  1880.      the current font on the top line followed by the current key shown in
  1881.      brackets (also on the top line). The current range of characters in the
  1882.      current font is shown on the next two lines in the window as, for instance:
  1883.      "START: A", "END: Z". This means that this font contains a character for
  1884.      each keyboard character between uppercase A to Z. It is important to make
  1885.      the distinction between font characters and keyboard characters. With some
  1886.      fonts loaded, for example, pressing the [A] key may draw an Apple rather
  1887.      than an 'A'.
  1888.  
  1889.      Also shown at the top of the font window is the current font's height and
  1890.      width. These are expressed in pixels. The maximum character height is 32
  1891.      pixels. The maximum width is 48.
  1892.  
  1893.      Warning:  you should not change the height and width of an existing font.
  1894.      Set these values only when you are creating a new font. If you do change
  1895.      these in an existing font, you will get scrambled images when writing with
  1896.      that font. The same applies to the range of characters in a font. Do not
  1897.      change this after the font is defined.
  1898.  
  1899.      The "SPACE:" field indicates the amount of space needed for the particular
  1900.      character currently displayed. By varying this from character to character,
  1901.      you can create proportionally spaced fonts. For instance, in a font whose
  1902.      size is 32 dots high by 24 dots wide, the 'I' character may need 8 dots of
  1903.      space, while the 'M' character would need 24 dots. To change this value
  1904.      press [F6].
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910.      Page 24                                                         PC-Draft II
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920.  
  1921.  
  1922.  
  1923.      When you press any character key that falls within the range of the current
  1924.      font, that character will be displayed for editing. You can move the cursor
  1925.      with the arrow keys. Similar to the [Z]oom command discussed above, the
  1926.      [F9] key (mouse left button) controls the editing of pixels:
  1927.  
  1928.      o    Press [F9] once to draw pixels as you move.
  1929.      o    Press [F9] again to erase as you move.
  1930.      o    Press [F9] again and you are back to the original state, no change
  1931.           will be made as you move the cursor.  In this mode, the [Ins] (mouse
  1932.           right button) key will toggle the current pixel.
  1933.  
  1934.      The usage of the other function keys is shown in the Font window:
  1935.  
  1936.      [F1] Shifts the current character left one pixel.
  1937.      [F2] Shifts it right.
  1938.      [F3] Fills the entire character.
  1939.      [F4] Clears it.
  1940.      [F5] Reverses each pixel.
  1941.      [F6] Allows you to change the character size of the font and/or the space
  1942.           for the current character.
  1943.      [F7] Allows you to change the range of characters included in this font.
  1944.      [F8] Prints the screen, including the font window.
  1945.      [F9] Toggle the setting or clearing of pixels.
  1946.      [F10]     Allows you to copy the image from another character to the
  1947.                current one.
  1948.  
  1949.           Note: that you can copy images drawn on the regular drawing area into
  1950.           specified characters in the font with the [X]fer command described in
  1951.           the Drawing Commands section above.
  1952.  
  1953.  
  1954.      Saving Fonts
  1955.  
  1956.      To save a font, press: [F3][F][S] for "File menu, [F]ont, [S]ave". And
  1957.      enter a filename. PC-Draft will automatically add the .FON file extension.
  1958.  
  1959.           Note: that fonts do not necessarily have to contain characters. They
  1960.           provide a convenient way to store a group of symbols or objects, so
  1961.           that they are available in memory all at once. For example the font
  1962.           file: FLOW.FON contains objects designed to draw flow charts:
  1963.  
  1964.  
  1965.  
  1966.  
  1967.  
  1968.  
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.      Fonts                                                               Page 25
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.                                         Macros
  1990.  
  1991.      The Macro feature of PC-Draft provides a way to store a sequence of key-
  1992.      strokes in a .MAC file for later playback. This is another way to create a
  1993.      library of images. MAC files are stored as normal ASCII text files and can
  1994.      be edited by your favorite text editor. As well as a way of saving drawing
  1995.      commands, macros can be used to provide a variety of interesting animation
  1996.      effects.
  1997.  
  1998.  
  1999.      Using Macros
  2000.  
  2001.      To start the playback of a macro (for example use one of the samples
  2002.      supplied with PC-Draft), press [F3][M][R] and in the filename prompt box
  2003.      enter: [MAC\] and press [^] or [v] to step through the MAC directory. Press
  2004.      [Enter] to start. The sequence of keystrokes stored in the selected macro
  2005.      file will be immediately played back.
  2006.  
  2007.      By changing the current cursor increment value, and then replaying the
  2008.      macro, you can redraw a given shape larger or smaller (as long as the
  2009.      cursor increment value was not changed within the macro itself).
  2010.  
  2011.  
  2012.      Creating Macros
  2013.  
  2014.      To start creating a new macro, press [F3][M][S], and enter a filename. When
  2015.      you press [Enter] to return to the drawing screen, each keystroke from that
  2016.      point on will be recorded and saved in the specified file.
  2017.  
  2018.      To end the recording of keys, press [%] (the percent symbol key). The .MAC
  2019.      file will be closed. You can then replay the macro in different positions,
  2020.      and with different cursor increment values.
  2021.  
  2022.      Suspend Cursor Increment
  2023.  
  2024.      It is useful to be able to move one pixel at a time within a macro without
  2025.      actually changing the cursor increment value so that the macro can be
  2026.      replayed for different sized objects. This can be accomplished with the
  2027.      [S]uspend command to temporarily cause the cursor to move one dot at a
  2028.      time.
  2029.  
  2030.      Relative [+/-] Cursor Increment
  2031.  
  2032.      Similarly, you can use the [+] and [-] keys to increment and decrement the
  2033.      cursor increment value to make changes relative to the value in effect when
  2034.      the macro is started.
  2035.  
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.      Page 26                                                         PC-Draft II
  2043.  
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054.  
  2055.      .MAC file structure
  2056.  
  2057.      Macro files are created as standard ASCII text files and may be edited with
  2058.      your ASCII text editor (even EDLIN!). .MAC files simply consist of each
  2059.      keystroke as entered during their creation. Control keys are represented by
  2060.      their keyboard scan value as an ASCII character preceded by a "^" charac-
  2061.      ter.
  2062.  
  2063.      The common PC-Draft keystrokes are as follows:
  2064.  
  2065.  
  2066.                    [F1] = ^;       [^] = ^H    [Ctrl + PgUp] = ^(value 132)     
  2067.                    [F2] = ^<       [v] = ^P    [Ctrl + PgDn] = ^v
  2068.                    [F3] = ^=       [<] = ^K    [Ctrl + <]    = ^s
  2069.                    [F4] = ^>       [>] = ^M    [Ctrl + >]    = ^t 
  2070.                    [F5] = ^?       [Home] = ^G
  2071.                    [F6] = ^@       [End]  = ^O [Enter]       = (value 13)
  2072.                    [F7] = ^A       [PgUp] = ^I [Esc]         = ^[
  2073.                    [F8] = ^B       [PgDn] = ^Q
  2074.                    [F9] = ^C
  2075.                    [F10] = ^D
  2076.  
  2077.  
  2078.      For example the shadow box macro: SHADOW.MAC is:
  2079.  
  2080.      B^Q^M^M^M^HS^P^P^P^P^MR^M^M^M^M^M^MS^PR^K^K^K^KS^H^ H^HS^H%
  2081.  
  2082.      Note that the macro file must end with the "%" terminator character.
  2083.  
  2084.  
  2085.      Importing text files:
  2086.  
  2087.      You can import text from a standard ASCII text file into the graphic
  2088.      screen. To do so, you must do three things: 
  2089.  
  2090.      1.   Add the character "t" as the first character in the file. This will
  2091.           tell PC-Draft II to enter text mode. 
  2092.  
  2093.      2.   Add the character "%" to the end of the file. This tells the macro
  2094.           function that the end of the macro has been reached.
  2095.  
  2096.      3.   Rename the file so that its extension is .MAC.
  2097.  
  2098.  
  2099.      Actually what you do is convert the text file into a PC-Draft II macro
  2100.      file. Now, to import the text:
  2101.  
  2102.      1.   Set the window size as appropriate for the text in the position you
  2103.           want within the graphic screen area with the [Alt + W] command.
  2104.  
  2105.  
  2106.  
  2107.  
  2108.      Macros                                                              Page 27
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.      2.   Position the cursor to the upper left corner of the window.
  2122.  
  2123.      3.   Load the macro by pressing: [F3][M][R] and entering the name of your
  2124.           text file.
  2125.  
  2126.      That's it. The text will be imported into the window area, wrapping around
  2127.      as necessary. If your text file is too long for the window size, you will
  2128.      have to put up with a lot of beeping as the macro tries to write characters
  2129.      at the end of the window.
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135.  
  2136.  
  2137.  
  2138.  
  2139.  
  2140.  
  2141.  
  2142.  
  2143.  
  2144.  
  2145.  
  2146.  
  2147.  
  2148.  
  2149.  
  2150.  
  2151.  
  2152.  
  2153.  
  2154.  
  2155.  
  2156.  
  2157.  
  2158.  
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.      Page 28                                                         PC-Draft II
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187.                                         Graphs
  2188.  
  2189.      PC-Draft's graphing function allows you to automatically create line, bar
  2190.      and pie charts. While this function is not as sophisticated as you might
  2191.      find in business graphics programs dedicated to that purpose, PC-Draft
  2192.      provides the means to enhance your graphs with labels, pattern fills, etc.
  2193.      in a much more flexible and free form way. You are the artist. PC-Draft is
  2194.      the tool.
  2195.  
  2196.      Creating graphs involves three steps:
  2197.  
  2198.      1.   Enter a set of value pairs (for X and Y graph axis).
  2199.      2.   Select the type of graph: Bar, Line, Points, or Pie.
  2200.      3.   Draw the graph (similar to the [B]ox command or the [C]ircle command
  2201.           for pie charts).
  2202.  
  2203.      Editing Points
  2204.  
  2205.      Press [F7] to pop-up the graph menu. Then press [E] to edit points. Enter
  2206.      values for each element in your graph. Normally the values on the X axis
  2207.      would be equal for equally sized Bars in a Bar graph for example. So, enter
  2208.      a 1 for each element down the X column. The first X axis entry of zero
  2209.      signals the end. If your graph has 8 elements, the ninth entry in the X
  2210.      column should be zero. If your Y values are decimal, enter them without the
  2211.      decimal point. For instance, enter 12.34 as 1234, and then 56.00 as 5600.
  2212.  
  2213.      Saving Points
  2214.  
  2215.      You can save your graph data to a .PTS file by pressing: [F7][S] and sp-
  2216.      ecifying a filename.
  2217.  
  2218.      loading Points
  2219.  
  2220.      Similarly, you load previously saved graph data with: [F7][L].
  2221.  
  2222.      Graph Type
  2223.  
  2224.      Specify the type of graph you want to draw by pressing [F7][T]. Then select
  2225.      either [B]ar, [L]ine, [D]ots, or [P]ie.
  2226.  
  2227.      Drawing graphs
  2228.  
  2229.      Once you have entered or loaded point values and selected a graph type, you
  2230.      can draw your graph anywhere in your drawing. For graph types other than
  2231.      Pie, position the cursor at one corner of a rectangular area, press [G],
  2232.      then move the cursor to the opposite corner and press [Enter].
  2233.  
  2234.      PC-Draft automatically scales the graph to fill the rectangular area
  2235.      specified. To overlay two or more sets of graph point values:
  2236.  
  2237.  
  2238.  
  2239.  
  2240.      Graphs                                                              Page 29
  2241.  
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.  
  2249.  
  2250.  
  2251.  
  2252.  
  2253.      1.   Draw a bar graph for the first set of points.
  2254.      2.   Turn off the Graph s[C]ale by pressing: [F7][C] so that the scale
  2255.           indicator shows: [OFF]. This will cause PC-Draft to use the same scale
  2256.           established from the previous graph.
  2257.      3.   Load the second set of point values.
  2258.      4.   Select the drawing mode: [F5][O]verlay (see below).
  2259.      5.   Draw the graph for the second set of points in the same location as
  2260.           the first.
  2261.  
  2262.      For the Pie graph type, move the cursor to the center of a circular area,
  2263.      press [G], and move the cursor outward to size the pie chart.
  2264.  
  2265.  
  2266.  
  2267.  
  2268.  
  2269.  
  2270.  
  2271.  
  2272.  
  2273.  
  2274.  
  2275.  
  2276.  
  2277.  
  2278.  
  2279.  
  2280.  
  2281.  
  2282.  
  2283.  
  2284.  
  2285.  
  2286.  
  2287.  
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299.  
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.      Page 30                                                         PC-Draft II
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319.                                      Drawing Mode
  2320.  
  2321.      The drawing mode determines what happens pixel by pixel when you draw over
  2322.      existing (set) pixels. When first started PC-Draft is in [R]eplace drawing
  2323.      mode.
  2324.  
  2325.      To change drawing mode, press [F5] to pop-up the drawing mode menu. Then
  2326.      press the letter in brackets for the mode you want, or press [^] or [v] to
  2327.      move the pointer and press [Enter] to make your selection.
  2328.  
  2329.      The effect of each drawing mode is as follows:
  2330.  
  2331.      [R]eplace:     The resulting pixel equals the drawing pixel.
  2332.  
  2333.      [O]verlay:     The resulting pixel is changed only if the drawing pixel is
  2334.                     "on".
  2335.  
  2336.      [T]ransparent: The resulting Pixel is made the opposite of the drawing
  2337.                     pixel. This is "XOR" mode.
  2338.  
  2339.      You might want to experiment with the drawing mode to see how it affects
  2340.      other operations such as spra[Y] can, [J]ust paint and [P]aint.
  2341.  
  2342.  
  2343.  
  2344.  
  2345.  
  2346.  
  2347.  
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354.  
  2355.  
  2356.  
  2357.  
  2358.  
  2359.  
  2360.  
  2361.  
  2362.  
  2363.  
  2364.  
  2365.  
  2366.  
  2367.  
  2368.  
  2369.  
  2370.  
  2371.  
  2372.      Drawing Mode                                                        Page 31
  2373.  
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.  
  2380.  
  2381.  
  2382.  
  2383.  
  2384.  
  2385.                                        Printing
  2386.  
  2387.      PC-Draft will print your drawing using a variety of IBM or Epson compat-
  2388.      ible dot matrix printers or a laser printers compatible with the Hewlett
  2389.      Packard LaserJet+ (Note that this includes HP's DeskJet printer). 
  2390.  
  2391.      You can print a portion of the current screen window, the whole screen or
  2392.      the entire drawing. The printing function is evoked by pressing the [F8]
  2393.      key. If you press [F8] with a pop-up menu "up", you will print the screen
  2394.      with the menu pop-up included. Otherwise, the menu bar and control panel
  2395.      will not be printed.
  2396.  
  2397.      When printing, you will be asked for a filename (after specifying printer
  2398.      type and resolution mode). If you wish to dump the printer control bytes to
  2399.      a file for later printing, enter the filename to use. You may include the
  2400.      optional drive and path designations. If you wish to immediately print,
  2401.      simply press the Enter key. You can later print the file created by this
  2402.      method from outside of PC-Draft by the DOS command:
  2403.  
  2404.           COPY /B PRTFILE PRN
  2405.  
  2406.      Note:  that you must use the /B option since the file is a binary file. For
  2407.      the same reason, do not use the DOS print command, since the file is a
  2408.      binary file containing byte values which may be interpreted by the Print
  2409.      program as tabs.
  2410.  
  2411.      This feature was added to enable you to incorporate PC-Draft images into
  2412.      word processors that allow sending files to the printer in the middle of
  2413.      the word processor document. It is also handy if you want to print several
  2414.      items at a time but do not want to wait on the slow speed of the printer.
  2415.      You can save all the images to files with a common extension (such as
  2416.      .PRT). Then later print them all with:
  2417.  
  2418.           COPY /B *.PRT PRN
  2419.  
  2420.  
  2421.      Printer resolution modes
  2422.  
  2423.      It is not always possible to get dot matrix printer output to exactly
  2424.      represent the same aspect ratio as the graphics screen. 
  2425.  
  2426.      The monitor's (in high resolution 640 by 200 dot mode) aspect ratio is 2:1. 
  2427.      It takes two horizontal dots to equal one vertical dot. A box that is 100
  2428.      pixels wide by 50 pixels high will appear square.
  2429.  
  2430.      Printers compatible with either the IBM Graphic dot matrix or the Epson dot
  2431.      matrix printers always print with a vertical resolution of 72 dots per inch
  2432.      (this is the spacing between the pins in the print head). So the perfect
  2433.      horizontal resolution to match the screen appearance is 144 dots per inch
  2434.  
  2435.  
  2436.  
  2437.  
  2438.      Page 32                                                         PC-Draft II
  2439.  
  2440.  
  2441.  
  2442.  
  2443.  
  2444.  
  2445.  
  2446.  
  2447.  
  2448.  
  2449.  
  2450.  
  2451.      horizontally (144:72 ratio). The Epson FX+ series printers have this
  2452.      resolution, the IBM dot matrix printer (and many compatibles) does not.
  2453.  
  2454.      The 60 dots per inch modes print two vertical dots for each one in your
  2455.      original drawing in an attempt to get as close as possible to the 2:1
  2456.      aspect ratio. 60:36 is close but not perfect. This mode fits one screen
  2457.      window on eight inch wide paper.
  2458.  
  2459.      The 240 dots per inch modes print one vertical dot for every two in your
  2460.      original drawing. The pixels in alternate lines are combined. This 240:144
  2461.      aspect ratio is better than the normal 240:72, but still does not produce
  2462.      perfectly round circles.
  2463.  
  2464.      Each printer has different graphics resolution modes. The current version
  2465.      of PC-Draft supports up to four modes for each printer supported. 
  2466.  
  2467.  
  2468.      IBM dot matrix
  2469.  
  2470.      (Same as Okidata Microline 290 series)
  2471.  
  2472.           Mode [1]  prints at 60 dots per inch. (480 dots/8 inch line.)
  2473.           Mode [2]  prints at 120 dots per inch. (960 dots/8 inch line.)
  2474.           Mode [3]  prints at 120 dots per inch. (draft mode is faster, prints
  2475.                     every other dot.)
  2476.           Mode [4]  prints at 240 dots per inch (1920 dots/8 inch line.) this
  2477.                     fits two screens wide in 5-5/16 inches.)
  2478.  
  2479.      There is no mode for this printer that will print round circles.
  2480.  
  2481.      Epson dot matrix
  2482.  
  2483.           Mode [1]  prints at 72 dots per inch. (4576 dots/8 inch line.)
  2484.           Mode [2]  prints at 120 dots per inch. (960 dots/8 inch line.)
  2485.           Mode [3]  prints at 144 dots per inch. (1152 dots/8 inch line.) This
  2486.                     is best for round circles. However, you lose 128 dots from
  2487.                     the far right of your drawing unless you have a wide car-
  2488.                     riage printer.
  2489.           Mode [4]  prints at 240 dots per inch (1920 dots/8 inch line.) this
  2490.                     fits two screens wide in 5-5/16 inches.)
  2491.  
  2492.      HP LaserJet+
  2493.  
  2494.           (Also for HP DeskJet)
  2495.           Mode [1]  prints at 75 dots per inch. (600 dots/8 inch line.)
  2496.           Mode [2]  prints at 100 dots per inch. (800 dots/8 inch line.)
  2497.           Mode [3]  prints at 150 dots per inch. (1200 dots/8 inch line.) This
  2498.                     fills an 8-1/2 by 11 inch size printout.
  2499.           Mode [4]  prints at 300 dots per inch (2400 dots/8 inch line.) this
  2500.                     fits two screens wide in 4.26 inches.)
  2501.  
  2502.  
  2503.  
  2504.      Printing                                                            Page 33
  2505.  
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512.  
  2513.  
  2514.  
  2515.  
  2516.  
  2517.  
  2518.      All modes for the LaserJet print double the number of pixels vertically to
  2519.      more closely match the proportions of the screen, so that squares and
  2520.      circles are printed square and round. 
  2521.  
  2522.      If your drawing is the equivalent of two screens wide, you should use the
  2523.      high density modes to fit on 8 1/2 inch wide paper.
  2524.  
  2525.      If you have a printer that you would like PC-Draft to support, please send
  2526.      a copy of the dot graphics section of your printer manual and we will
  2527.      supply you with a printer driver for your printer and add it to our collec-
  2528.      tion.
  2529.  
  2530.      IDS Microprism
  2531.  
  2532.      This has only one graphics resolution mode, so we made an attempt to allow
  2533.      two adjustments:
  2534.  
  2535.           Mode [1]  prints at normal mode.
  2536.           Mode [2]  prints at one half vertical.
  2537.  
  2538.      C.Itoh 8510-1550
  2539.  
  2540.      (same as NEC 8023A/B and SONY SMI-720)
  2541.           Mode [1]  prints at 80 dots per inch. (640 dots/8 inch line.)
  2542.           Mode [2]  prints at 96 dots per inch. (768 dots/8 inch line.)
  2543.           Mode [3]  prints at 136 dots per inch. (1088 dots/8 inch line.) 
  2544.           Mode [4]  prints at 160 dots per inch (1280 dots/8 inch line.)
  2545.  
  2546.      GEM .IMG
  2547.  
  2548.      Of great importance to users of DeskTop publishing programs like Ventura
  2549.      Publisher, is the ability to export portions of the screen, full screens,
  2550.      and/or full drawings in GEM .IMG file format. This allows inclusion of
  2551.      graphics created (or captured) with PC-Draft directly into DTP documents.
  2552.      (Also works with WordPerfect v 5.0!) Simply print (box, screen or drawing)
  2553.      using the GEM IMG choice on the printer menu as your printer choice -- you
  2554.      must give a filename (the filename should have an ".IMG" extension).
  2555.  
  2556.      This manual was created using WordPerfect 5.0. The illustrations of PC-
  2557.      Draft screens were made using this method. 
  2558.  
  2559.  
  2560.      Print current screen window
  2561.  
  2562.      Press [F8] to pop-up the print menu and select [S] for [S]creen. Then
  2563.      select a printer type. Then select a printer resolution mode: [1] - [4]
  2564.      from low to high density. Then (if you want to save the printer codes in a
  2565.      file for later printing), enter the path and filename of the file to save
  2566.  
  2567.  
  2568.  
  2569.  
  2570.      Page 34                                                         PC-Draft II
  2571.  
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.  
  2579.  
  2580.  
  2581.  
  2582.  
  2583.      the printer data. Or, (if you wish to print immediately), press the [Enter]
  2584.      key without any filename.
  2585.  
  2586.      These steps are typical for the other two printing options: [A]ll and
  2587.      [B]ox.
  2588.  
  2589.      Print full drawing
  2590.  
  2591.      Press [F8] to pop-up the print menu and select [A] for [A]ll. Then select a
  2592.      printer type and resolution mode.
  2593.  
  2594.      Print partial screen
  2595.  
  2596.      First position the cursor to one corner of a rectangular area of the screen
  2597.      to print. Press [F8] to pop-up the print menu and select [B] for [B]ox.
  2598.      After selecting the printer type, you then must position the cursor to the
  2599.      opposite corner of the area to print as if you were drawing a box. Then
  2600.      select a printer resolution mode: [1] -[4] from low to high density and
  2601.      press [Enter] (mouse right button) to start printing.
  2602.  
  2603.  
  2604.  
  2605.  
  2606.  
  2607.  
  2608.  
  2609.  
  2610.  
  2611.  
  2612.  
  2613.  
  2614.  
  2615.  
  2616.  
  2617.  
  2618.  
  2619.  
  2620.  
  2621.  
  2622.  
  2623.  
  2624.  
  2625.  
  2626.  
  2627.  
  2628.  
  2629.  
  2630.  
  2631.  
  2632.  
  2633.  
  2634.  
  2635.  
  2636.      Printing                                                            Page 35
  2637.  
  2638.  
  2639.  
  2640.  
  2641.  
  2642.  
  2643.  
  2644.  
  2645.  
  2646.  
  2647.  
  2648.  
  2649.                                     Screen Capture
  2650.  
  2651.      A program called CAPTURE.COM on the distribution diskette, allows you to
  2652.      capture screen images from other programs, save them in separate files, and
  2653.      later load them into PC-Draft. This is useful when writing software docu-
  2654.      mentation. You can add boarders around the screen and print them for later
  2655.      paste up.
  2656.  
  2657.      CAPTURE uses a the hot-key combination: [Alt]+[.]
  2658.  
  2659.      Capture is a Terminate and Stay Resident (TSR) program. When you run it
  2660.      from the DOS command line, it will announce its presence and quietly sink
  2661.      into the background and wait to be called into action (when its "hot key"
  2662.      is pressed). 
  2663.  
  2664.      When you run Capture, you must provide it with the location and starting
  2665.      file name to use to store the screen images it captures. For example, if
  2666.      you have installed PC-Draft on your hard disk in a sub-directory called
  2667.      DRAFT, you might start Capture with this command:
  2668.  
  2669.      CAPTURE C:\DRAFT\PIC\SCREENA.PIC
  2670.  
  2671.      Now Capture will store its screens in the PIC sub-directory. The first
  2672.      screen it saves will be called SCREENA.PIC, the second will be called
  2673.      SCREENB.PIC. Each subsequent .PIC file will increment the character in the
  2674.      filename just before the extension. These files are graphic pic files com-
  2675.      patible with PC-Draft regardless of whether the original screen was in text
  2676.      mode or graphics mode.
  2677.  
  2678.      To activate Capture and save the current screen to a .PIC file, you press
  2679.      the [Alt + left Shift] ([Alt + .] for Capture2) keys together. You will
  2680.      hear a beep when Capture is called. Three beeps means it successfully wrote
  2681.      a unique file to the specified directory. Only one beep means it was unable
  2682.      to create the file (could not find the directory?). Only two beeps means it
  2683.      created the file, but could not write the full 16k screen buffer, (disk
  2684.      full?).
  2685.  
  2686.      Capture will detect the current video mode and adjust. It converts text
  2687.      mode screens into bit mapped graphics suitable for PC-Draft II.
  2688.  
  2689.      Like any other TSR, Capture may have compatibility problems with other
  2690.      software, especially other TSR's. If you have trouble, try installing
  2691.      Capture by itself and adding your other TSR utilities one at a time after
  2692.      you get Capture to work.
  2693.  
  2694.      We strongly recommend the shareware utilities MARK and RELEASE. They will
  2695.      allow you to de-install Capture (and other TSR's). Look for them on your
  2696.      bulletin board.
  2697.  
  2698.  
  2699.  
  2700.  
  2701.  
  2702.      Page 36                                                         PC-Draft II
  2703.  
  2704.  
  2705.  
  2706.  
  2707.  
  2708.  
  2709.  
  2710.  
  2711.  
  2712.  
  2713.  
  2714.  
  2715.                               The PIX graphics language
  2716.  
  2717.      The PIX.COM program is actually a special version of PC-Draft which reads
  2718.      its input from a script file of graphic commands instead of responding to
  2719.      the keyboard. By creating such a file with your favorite text editor, you
  2720.      are in fact writing a graphics program that will be played out as an
  2721.      animated sequence of steps as PIX reads the file. PIX allows you to:
  2722.  
  2723.                o    Create a script of graphic commands to be played out in
  2724.                     animation for presentations.
  2725.  
  2726.                o    You can load and display screens and whole drawings created
  2727.                     by PC-Draft.
  2728.  
  2729.                o    You can use (and create) PC-Draft objects and macros.
  2730.  
  2731.                o    You can create new macros with PIX's procedures and looping
  2732.                     for use in PC-Draft.
  2733.  
  2734.                o    PIX has repeat looping and Procedures (subroutines).
  2735.  
  2736.                o    In place of literal values used for the drawing commands,
  2737.                     you can substitute variables.
  2738.  
  2739.                o    You can run PIX in trace mode for debugging.
  2740.  
  2741.      We have provided some sample PIX programs on your distribution disk. These
  2742.      files all have the filename extension: .SCR. To get a feel for what PIX is
  2743.      and its versatility run the demo program as follows. To start a PIX demon-
  2744.      stration, with the file PIX.COM on the current drive and DEMO.SCR in the
  2745.      SCR directory, enter the command:
  2746.  
  2747.           PIX SCR\DEMO
  2748.  
  2749.      at the DOS command prompt, and sit back and watch.
  2750.  
  2751.      PIX is a special purpose language with a few simple rules:
  2752.  
  2753.      o    The PIX source file must be created as a standard ASCII text file by
  2754.           your own text editor. EDLIN (shudder) will work if you don't have any
  2755.           other.
  2756.  
  2757.      o    Each PIX program statement must be on a line by itself.
  2758.  
  2759.      o    Numbers are always enclosed by parentheses and separated by commas,
  2760.           such as: (12,34,56,78).
  2761.  
  2762.      o    Numbers are integers (usually used to represent X and Y locations,
  2763.           Pattern, Color, or Repeat loop index.)
  2764.  
  2765.  
  2766.  
  2767.  
  2768.      PIX Language                                                        Page 37
  2769.  
  2770.  
  2771.  
  2772.  
  2773.  
  2774.  
  2775.  
  2776.  
  2777.  
  2778.  
  2779.  
  2780.  
  2781.      o    Key words such as LINE and CIRCLE can be abbreviated to their first
  2782.           three characters (LIN and CIR).
  2783.  
  2784.      o    Upper and lower case is not significant. The commands; LINE, line,
  2785.           Line, and LiN are all equivalent.
  2786.  
  2787.      o    White space (space character) is generally ignored, so lines can be
  2788.           indented for readability. The exception is around numbers within
  2789.           parentheses: ( 12, 34, 56 ) is not legal.
  2790.  
  2791.      o    Any text on a line following a command is ignored, perfect for com-
  2792.           ments.
  2793.  
  2794.      o    Any line beginning with a semi-colon is considered a comment.
  2795.  
  2796.      o    A number or variable on a line by itself is considered as a change to
  2797.           the cursor increment value, just as if you had typed in a number while
  2798.           using PC-Draft.
  2799.  
  2800.      o    Values used to refer to cursor positions are always in relation to the
  2801.           current screen window, not the entire drawing.
  2802.  
  2803.      Starting PIX
  2804.  
  2805.      To run PIX simply type PIX at the DOS command prompt followed by the file
  2806.      name of your script (program). If you do not specify a script file, PIX
  2807.      will search the current directory for a script file named AUTO.SCR. If this
  2808.      file is not found, PIX will ask you for a script filename. Once a valid
  2809.      script file is found, PIX immediately begins its performance. When the
  2810.      script has finished, press the [Enter] key to return to DOS.
  2811.  
  2812.      Trace mode
  2813.  
  2814.      To run PIX in trace (single step) mode, evoke PIX with a [T] command line
  2815.      argument. For example, to trace through the demo script type:
  2816.  
  2817.                          PIX T DEMO
  2818.  
  2819.      In this mode PIX will display each command line of your script file and
  2820.      wait for you to press [Enter] before executing it.
  2821.  
  2822.      Exit PIX
  2823.  
  2824.      To exit PIX before the script is completed, press any key to interrupt. PIX
  2825.      will display a pop-up window asking if you wish to exit. Enter a [Y] to
  2826.      exit or any other character to continue.
  2827.  
  2828.  
  2829.  
  2830.  
  2831.  
  2832.  
  2833.  
  2834.      Page 38                                                         PC-Draft II
  2835.  
  2836.  
  2837.  
  2838.  
  2839.  
  2840.  
  2841.  
  2842.  
  2843.  
  2844.  
  2845.  
  2846.  
  2847.      PIX Commands
  2848.  
  2849.      Each line in your PIX program represents a PIX command. For instance the
  2850.      following command line draws a box 20 pixels wide by 40 pixels high start-
  2851.      ing at X location 120 and Y location 10:
  2852.  
  2853.                                    Box (120,10,140,50)
  2854.  
  2855.  
  2856.  
  2857.      You could draw the same box with a series of cursor movement commands which
  2858.      emulate the way you would draw it with PC-Draft:
  2859.  
  2860.                                    10             Set cursor increment = 10
  2861.                                    Gotoxy (120,10)     goto starting position
  2862.                                    Box            Start the box
  2863.                                    down           Go down 10 pixels
  2864.                                    down           10 more = 20
  2865.                                    dright              10 down and 10 right
  2866.                                    dright              Now   we're   at  X=140,
  2867.                                                        Y=50
  2868.                                    end            This ends the box command.
  2869.                                    Quit           Exit PIX
  2870.  
  2871.  
  2872.  
  2873.  
  2874.      Note that the above is a complete PIX program. The text following each
  2875.      command is treated as a comment.
  2876.  
  2877.      Variables
  2878.  
  2879.      Pix allows you to substitute an integer variable in place of numbers used
  2880.      in the various drawing commands. A variable is identified by one of the 26
  2881.      alpha characters [A..Z]. For instance the same box described above can be
  2882.      drawn using variable substitution:
  2883.  
  2884.                                    Let A = (120)
  2885.                                    Let B = (10)
  2886.                                    Let C = (50)
  2887.                                    Box (a,b,140,c)
  2888.  
  2889.  
  2890.  
  2891.  
  2892.  
  2893.      Note that variables can be mixed with numeric values and that upper and
  2894.      lower case character identifiers are treated as identical.
  2895.  
  2896.      Assign (LET)
  2897.  
  2898.  
  2899.  
  2900.      PIX Language                                                        Page 39
  2901.  
  2902.  
  2903.  
  2904.  
  2905.  
  2906.  
  2907.  
  2908.  
  2909.  
  2910.  
  2911.  
  2912.  
  2913.  
  2914.      You assign values to variables with the Let statement as shown:
  2915.  
  2916.           Let A = (#)
  2917.  
  2918.      (The equal sign is optional for readability, you could say:
  2919.  
  2920.           Let A (#)
  2921.  
  2922.      with the same result.
  2923.  
  2924.      Increment
  2925.  
  2926.           The following statements increment (by one) the variable B:
  2927.  
  2928.                                    Increment B
  2929.                                    Inc B
  2930.  
  2931.  
  2932.  
  2933.  
  2934.      Decrement
  2935.  
  2936.           The following statements decrement (by one) the variable C:
  2937.  
  2938.                                    Decrement C
  2939.                                    Dec C
  2940.  
  2941.  
  2942.  
  2943.  
  2944.      Cursor Movement Commands
  2945.  
  2946.      These cause the graphics cursor to move in the specified direction relative
  2947.      to the current position. How far the cursor moves is determined by the
  2948.      current cursor increment value.
  2949.  
  2950.      Right, Left, Up, Down, are the vertical and horizontal moves.
  2951.       
  2952.      URight, ULeft, DRight, DLeft, are the diagonal moves. For instance to move
  2953.      the cursor Down and to the right use the command: DRight.
  2954.  
  2955.      Gotoxy
  2956.  
  2957.           Use Gotoxy (x,y) for absolute cursor positioning. This moves the
  2958.           graphics cursor to X location 140 and Y location 86:
  2959.  
  2960.                                    Gotoxy (140,86)
  2961.  
  2962.  
  2963.  
  2964.  
  2965.  
  2966.      Page 40                                                         PC-Draft II
  2967.  
  2968.  
  2969.  
  2970.  
  2971.  
  2972.  
  2973.  
  2974.  
  2975.  
  2976.  
  2977.  
  2978.  
  2979.  
  2980.  
  2981.      Screen moves
  2982.  
  2983.      These commands allow you to move around the drawing (like [Ctrl + >] in PC-
  2984.      Draft:
  2985.  
  2986.      >up  corresponds to: [Ctrl + PgUp]
  2987.      >down     corresponds to: [Ctrl + PgDn]
  2988.      >left     corresponds to: [Ctrl + <]
  2989.      >right    corresponds to: [Ctrl + >]
  2990.  
  2991.  
  2992.      Or, you can move directly to a screen window number:
  2993.  
  2994.                          Move (#)  # must be between [1..28]
  2995.  
  2996.  
  2997.      Drawing Commands
  2998.  
  2999.      The following drawing commands perform functions as you might expect
  3000.      similar to PC-Draft. You can use them with the corner positions specified
  3001.      as parameters such as:
  3002.  
  3003.                                    Box (a,b,140,c)
  3004.  
  3005.  
  3006.  
  3007.  
  3008.      Or, you can use them as you would with PC-Draft with relative cursor
  3009.      movements to specify the opposite corner. Such as:
  3010.  
  3011.                                    Box
  3012.                                    DRight
  3013.                                    DRight
  3014.                                    DRight
  3015.                                    End
  3016.  
  3017.  
  3018.  
  3019.  
  3020.      These commands are:
  3021.        
  3022.           Box (x1,y1,x2,y2)
  3023.           Line (x1,y1,x2,y2)
  3024.           Circle (x1,y1,x2,y2)
  3025.           Rectangle (x1,y1,x2,y2)
  3026.           Object (x1,y1,x2,y2)
  3027.           Graph  (x1,y1,x2,y2)
  3028.           Window (x1,y1,x2,y2)
  3029.  
  3030.  
  3031.  
  3032.      PIX Language                                                        Page 41
  3033.  
  3034.  
  3035.  
  3036.  
  3037.  
  3038.  
  3039.  
  3040.  
  3041.  
  3042.  
  3043.  
  3044.  
  3045.  
  3046.      The Curve, Erase, Multi-line and Free-draw commands work a little
  3047.      differently. You specify a starting cursor position, then the command key-
  3048.      word, then a series of points, with the GOTOXY command. Then end the
  3049.      sequence of points with the END command. For example to draw a curve:
  3050.  
  3051.                                    gotoxy (50,20)
  3052.                                    Curve
  3053.                                      gotoxy (150,20)
  3054.                                      gotoxy (250,120)
  3055.                                      gotoxy (350,20)
  3056.                                      gotoxy (450,120)
  3057.                                      gotoxy (550,20)
  3058.                                      gotoxy (550,120)
  3059.                                      gotoxy (600,80)
  3060.                                    end
  3061.  
  3062.  
  3063.  
  3064.  
  3065.      or to draw multi-lines:
  3066.  
  3067.                                    gotoxy (10,10)
  3068.                                    Multi-line
  3069.                                      gotoxy (10,20)
  3070.                                      gotoxy (25,100)
  3071.                                      gotoxy (150,20)
  3072.                                      gotoxy (250,100)
  3073.                                      gotoxy (300,180)
  3074.                                    end
  3075.  
  3076.  
  3077.  
  3078.  
  3079.      You can Erase in a free form manner described above or in a straight line,
  3080.      for example:
  3081.  
  3082.                                    Erase (3,100,300,10)
  3083.  
  3084.  
  3085.  
  3086.  
  3087.      Arc
  3088.  
  3089.      The Arc command requires two sets of points. The first set establishes the
  3090.      full circle from which the desired arc will be taken. The second set of
  3091.      points describes the rectangular area which sets the boundaries for the
  3092.      arc. For example this draws a quarter circle arc:
  3093.  
  3094.  
  3095.  
  3096.  
  3097.  
  3098.      Page 42                                                         PC-Draft II
  3099.  
  3100.  
  3101.  
  3102.  
  3103.  
  3104.  
  3105.  
  3106.  
  3107.  
  3108.  
  3109.  
  3110.  
  3111.                                    Arc (300,100,300,10)(300,100,600,9)
  3112.  
  3113.  
  3114.  
  3115.      These next commands are single key commands which perform similarly to
  3116.      their counterparts in PC-Draft. You would first position the cursor, then
  3117.      call the command. For instance, with the Paint command, paint a circle:
  3118.  
  3119.                                    Circle (135,28,135,95)   Draw a circle
  3120.                                    Gotoxy (135,28)     Return to its center
  3121.                                    Paint               Fill  with  current pat-
  3122.                                tern
  3123.  
  3124.  
  3125.  
  3126.      They are:
  3127.  
  3128.                Paint
  3129.                Drop      (Object)
  3130.                Reverse   (Object)
  3131.                Expand    (Object)  ( double size vertically   )
  3132.                Contract  (Object)  ( halve size vertically    )
  3133.                Enlarge   (Object)  ( double size horizontally )
  3134.                Small     (Object)  ( halve size horizontally  )
  3135.                Home      (Move cursor to center screen)
  3136.                Kursor    (Toggle cursor between small x and large x)
  3137.                Undo      (Undo previous drawing command)
  3138.                Tog       (Toggle chart scale off/on)
  3139.  
  3140.      The following commands write strings of characters on the screen. They must
  3141.      be followed by the character string to write, and therefor cannot have a
  3142.      comment on the same line.
  3143.  
  3144.                Write <string> (Write "string" using the currently loaded font)
  3145.                Text  <string> (Write "string" using the IBM regular font)
  3146.  
  3147.      For example:
  3148.  
  3149.                                    Gotoxy (135,28)     Position the cursor 
  3150.                                    Write  This is my message
  3151.  
  3152.  
  3153.  
  3154.  
  3155.      Non Drawing Commands
  3156.  
  3157.                Pattern (#)    (Select pattern number [0..9] )
  3158.                Mode <MODE>    (Select Drawing Mode:
  3159.                               "Replace,Overlay,Transparent")
  3160.  
  3161.  
  3162.  
  3163.  
  3164.      PIX Language                                                        Page 43
  3165.  
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.  
  3173.  
  3174.  
  3175.  
  3176.  
  3177.                Type <MODE>    (Select Graph type: "Bar,Line,Dots,Pie")
  3178.                Clear          (Erase screen)
  3179.                Quit           (Exit PIX)
  3180.                Color (#)      (Select screen color. Colors are as follows:
  3181.  
  3182.                     0: Black       8: Dark Gray
  3183.                     1: Blue        9: Light Blue
  3184.                     2: Green       10: Light Green
  3185.                     3: Cyan        11: Light Cyan
  3186.                     4: Red         12: Light Red
  3187.                     5: Magenta     13: Light Magenta
  3188.                     6: Brown       14: Yellow
  3189.                     7: Light Grey  15: White  )
  3190.  
  3191.  
  3192.      File Commands
  3193.  
  3194.      Load or Save followed by: ("Screen A:PIC\SAMPLE.PIC")
  3195.           Load Screen    <FilePath>
  3196.           Save Screen    <FilePath>
  3197.           Load Drawing   <FilePath>
  3198.           Save Drawing   <FilePath>
  3199.           Load Pattern   <FilePath>
  3200.           Load Font      <FilePath>
  3201.           Load Object    <FilePath>
  3202.           Save Object    <FilePath>
  3203.           Load Macro     <FilePath>
  3204.           Save Macro     <FilePath>
  3205.           Load GraphPnts <FilePath>
  3206.  
  3207.      Program Control Statements
  3208.  
  3209.      Procedure <name>
  3210.                      .
  3211.                      .        ( Pix commands )
  3212.                      .
  3213.                     Endp      ( end proc. )
  3214.  
  3215.      Procedures must be declared before they are called (at the beginning of
  3216.      your PIX script). You are limited to a total of 50 named procedures. The
  3217.      number of command lines within each procedure is limited by memory.
  3218.      Procedures may contain any PIX commands including Repeat statements. You
  3219.      must end the procedure declaration with the Endp statement.
  3220.  
  3221.                     Repeat (#)     ( loop # times )
  3222.                      .
  3223.                      .        ( Pix commands )
  3224.                      .
  3225.                     Endr      ( end repeat )
  3226.  
  3227.  
  3228.  
  3229.  
  3230.      Page 44                                                         PC-Draft II
  3231.  
  3232.  
  3233.  
  3234.  
  3235.  
  3236.  
  3237.  
  3238.  
  3239.  
  3240.  
  3241.  
  3242.  
  3243.      The Repeat statement causes a series of commands to repeat a given number
  3244.      of times. There is a limit of 50 command lines within a repeat loop. You
  3245.      must end the repeat loop with the Endr statement.
  3246.  
  3247.      Other Commands
  3248.  
  3249.      End( terminate a series of cursor moves )
  3250.                     Wait (#)       ( # = 1/4 second pause )
  3251.                     Cursor              ( toggle visible cursor off/on )
  3252.                     %              ( end Record Macro     )
  3253.                     ;              ( comment )
  3254.  
  3255.      To see how the various PIX commands can be used look at the example .SCR
  3256.      files provided on the distribution disk.
  3257.  
  3258.  
  3259.      New PIX commands
  3260.  
  3261.      The PIX program has been upgraded. It now supports several new commands:
  3262.  
  3263.      Pause
  3264.  
  3265.      This command causes program execution to stop, and wait for a keystroke
  3266.      before continuing.
  3267.  
  3268.      Getkey
  3269.  
  3270.      The Getkey command allows for more interactive PIX programs. With Getkey,
  3271.      you can input a keystroke into a program variable (A to Z). You can then
  3272.      use the Case command described below to conditionally branch based on the
  3273.      key pressed. For example the command:
  3274.  
  3275.                                         Getkey A
  3276.  
  3277.  
  3278.      causes the PIX program to pause, wait for a keystroke, and when the user
  3279.      presses a key, places the key value in the variable: A.
  3280.  
  3281.      Case
  3282.  
  3283.      The Case command allows conditional branching within a PIX program. The
  3284.      case statement consists of a selector based on a program variable [A to Z]
  3285.      and a list of statements preceded by a case label. The expression deter-
  3286.      mines which statement in the list to execute. For example:
  3287.  
  3288.  
  3289.  
  3290.  
  3291.  
  3292.  
  3293.  
  3294.  
  3295.  
  3296.      PIX Language                                                        Page 45
  3297.  
  3298.  
  3299.  
  3300.  
  3301.  
  3302.  
  3303.  
  3304.  
  3305.  
  3306.  
  3307.  
  3308.  
  3309.                                         Getkey A
  3310.                                         Case A
  3311.                                              1 box (10,5,150,80)
  3312.                                              2 circle (10,5,150,80)
  3313.                                              3 rectangle (10,5,150,80)
  3314.                                         Endc
  3315.  
  3316.  
  3317.  
  3318.      PIX waits for the user to press a key, then assigns the value to the
  3319.      variable A, then executes one of the statements in the list depending on
  3320.      the value of A (1, 2, or 3).
  3321.  
  3322.      Note that the Case statement is ended by the key word: Endc.
  3323.  
  3324.      Jmp
  3325.  
  3326.      This allows an unconditional branch in a PIX program. The jump command must
  3327.      specify a target label. For example: 
  3328.  
  3329.                                              .
  3330.                                         Jmp LABELA
  3331.                                              .
  3332.                                              .
  3333.                                              .
  3334.                                         LABELA
  3335.                                              .
  3336.                                              .
  3337.  
  3338.  
  3339.      This will cause a jump to the label: LABELA skipping the statements between
  3340.      the Jmp and the label. Labels can be anything other than PIX key words.
  3341.      Jumps can only be forward. Pix cannot go in reverse, it reads the script
  3342.      file one line at time.
  3343.  
  3344.      The Jmp statement is most useful within a Case list. For example:
  3345.  
  3346.  
  3347.  
  3348.  
  3349.  
  3350.  
  3351.  
  3352.  
  3353.  
  3354.  
  3355.  
  3356.  
  3357.  
  3358.  
  3359.  
  3360.  
  3361.  
  3362.      Page 46                                                         PC-Draft II
  3363.  
  3364.  
  3365.  
  3366.  
  3367.  
  3368.  
  3369.  
  3370.  
  3371.  
  3372.  
  3373.  
  3374.  
  3375.                                         Getkey A
  3376.                                         Case A
  3377.                                              1 jmp labela
  3378.                                              2 jmp labelb
  3379.                                              3 jmp labelc
  3380.                                         Endc
  3381.                                         labela
  3382.                                         box (10,5,120.80)
  3383.                                         jmp  the_end
  3384.                                         labelb
  3385.                                         circle (10,5,120.80)
  3386.                                         jmp  the_end
  3387.                                         labelc
  3388.                                         rectangle (10,5,120.80)
  3389.                                         the_end
  3390.  
  3391.  
  3392.      Popup
  3393.  
  3394.      This allows you to open a popup window. PIX now supports up to ten such
  3395.      windows open at one time. Each window is referred to by its number (between
  3396.      1 and to). The proper syntax for Popup is: Popup (window number) (coo-
  3397.      rdinates). The window coordinates specify the upper left and lower right
  3398.      corners of the window in text coordinates (based on 25 lines of 80 charac-
  3399.      ters).
  3400.  
  3401.  
  3402.      Popdown
  3403.  
  3404.      This removes (pops down) a popup window. Its syntax is: Popdown (window
  3405.      number).
  3406.  
  3407.  
  3408.      Pgotoxy
  3409.  
  3410.      This positions the cursor in text coordinates relative to the specified
  3411.      popup window. The upper left corner of the window (in the box outline is
  3412.      coordinate: 0,0).
  3413.  
  3414.      For example the following code opens a window and displays two lines of
  3415.      text, waits for a keystroke from the user then removes the window (resto-
  3416.      ring the graphic screen below the window).
  3417.  
  3418.                                         Popup (1) (20,12,60,15)
  3419.                                         Pgotoxy (5,1)
  3420.                                         Text This is line one
  3421.                                         Text This is line two
  3422.                                         Pause
  3423.                                         Popdown (1)
  3424.  
  3425.  
  3426.  
  3427.  
  3428.      PIX Language                                                        Page 47
  3429.  
  3430.  
  3431.  
  3432.  
  3433.  
  3434.  
  3435.  
  3436.  
  3437.  
  3438.  
  3439.  
  3440.  
  3441.  
  3442.      Tgotoxy
  3443.  
  3444.      This positions the cursor in text coordinates relative to the entire screen
  3445.      based on 25 lines of 80 characters. The command: Tgotoxy (10,10) accomp-
  3446.      lishes the same as the command: Gotoxy (80,80) since each character
  3447.      occupies an 8 by 8 pixel grid.
  3448.  
  3449.      Print
  3450.  
  3451.      This allows printing of the drawing created with PIX. Simply place the
  3452.      command PRINT in your PIX script file at the point you wish to print. PIX
  3453.      will pause at that point and present a menu of printer choices:
  3454.  
  3455.                                    Select Printer
  3456.  
  3457.                                    1 - IBM graphic
  3458.                                    2 - generic Epson
  3459.                                    3 - HP-LaserJet+
  3460.  
  3461.  
  3462.  
  3463.  
  3464.      When you select the printer type a second window appears with printer
  3465.      resolution selections:
  3466.  
  3467.                                    Select Printer mode
  3468.  
  3469.                                    1 - 120 dots/in.
  3470.                                    2 - 240 dots/in.
  3471.  
  3472.  
  3473.  
  3474.  
  3475.      press [1] for low resolution (120 dpi for dot matrix printers, 150 dpi for
  3476.      LaserJet), [2] for high resolution (240 dpi for dot matrix, 300 dpi for
  3477.      LaserJet),to abort printing, press any other key. After printing starts,
  3478.      you can abort by pressing [Esc] and then [Y] to the prompt: [ Abort
  3479.      printing [Y/N]? ].
  3480.  
  3481.      You can have PIX print to a file by adding the filename as a parameter. For
  3482.      example the command:
  3483.  
  3484.                               PRINT C:\TEMP\PRINT.DMP
  3485.  
  3486.      sends the printer control codes to the file PRINT.DMP in the TEMP sub-
  3487.      directory on the C: drive.
  3488.  
  3489.      The PIX script file: CASE.SCR illustrates the above new commands.
  3490.  
  3491.  
  3492.  
  3493.  
  3494.      Page 48                                                         PC-Draft II
  3495.  
  3496.  
  3497.  
  3498.  
  3499.  
  3500.  
  3501.  
  3502.  
  3503.  
  3504.  
  3505.  
  3506.  
  3507.  
  3508.      PC-Draft commands not supported
  3509.  
  3510.      If you thought something was missing, you're right. Some PC-Draft commands
  3511.      didn't seem to make much sense to include within the PIX language. These
  3512.      are:
  3513.  
  3514.           Grid           Snap           Print
  3515.           Xfer           Font           Zoom      Just Paint
  3516.           spraY can      Quick View
  3517.           Edit Font      Edit Pattern   Edit Graph points
  3518.           Save Font      Save Pattern   Save Graph points
  3519.  
  3520.  
  3521.  
  3522.  
  3523.  
  3524.  
  3525.  
  3526.  
  3527.  
  3528.  
  3529.  
  3530.  
  3531.  
  3532.  
  3533.  
  3534.  
  3535.  
  3536.  
  3537.  
  3538.  
  3539.  
  3540.  
  3541.  
  3542.  
  3543.  
  3544.  
  3545.  
  3546.  
  3547.  
  3548.  
  3549.  
  3550.  
  3551.  
  3552.  
  3553.  
  3554.  
  3555.  
  3556.  
  3557.  
  3558.  
  3559.  
  3560.      PIX Language                                                        Page 49
  3561.  
  3562.  
  3563.  
  3564.  
  3565.  
  3566.  
  3567.  
  3568.  
  3569.  
  3570.  
  3571.  
  3572.  
  3573.                                Summary of PIX commands
  3574.  
  3575.  
  3576.           Cursor Movement:
  3577.  
  3578.                right     left up   down 
  3579.                uright    uleft     dright    dleft     gotoxy (x,y)
  3580.  
  3581.           Screen moves:
  3582.  
  3583.                >up  >down     >left     >right
  3584.                Move (#)  [1..28]
  3585.  
  3586.           Functions:
  3587.  
  3588.                Pattern (#)  [0..9] ( pattern number )
  3589.                Mode  {Replace|Overlay|Transparent}
  3590.                Type  {Bar|Line|Dots|Pie}
  3591.                Clear
  3592.                Color (#) 0: Black  8: Dark Gray
  3593.                          1: Blue        9: Light Blue
  3594.                          2: Green  10: Light Green
  3595.                          3: Cyan        11: Light Cyan
  3596.                          4: Red         12: Light Red
  3597.                          5: Magenta     13: Light Magenta
  3598.                          6: Brown  14: Yellow
  3599.                          7: Light Grey  15: White
  3600.  
  3601.           Drawing:
  3602.        
  3603.                Arc (x1,y1,x2,y2)(x1,y1,x2,y2)
  3604.                Box (x1,y1,x2,y2)
  3605.                Circle (x1,y1,x2,y2)
  3606.                Curve (x1,y1,x2,y2)
  3607.                Erase (x1,y1,x2,y2)
  3608.                Free-Draw {gotoxy(x,y)..gotoxy(x,y)..end}
  3609.                Line (x1,y1,x2,y2)
  3610.                Multi-line {gotoxy(x,y)..gotoxy(x,y)..end}
  3611.                Rectangle (x1,y1,x2,y2)
  3612.                Graph  (x1,y1,x2,y2)
  3613.                Window (x1,y1,x2,y2)
  3614.                Paint
  3615.                Home
  3616.                Kursor
  3617.                Undo
  3618.                Write <string>
  3619.                Text  <string>
  3620.                Tog (chart scale)
  3621.  
  3622.  
  3623.  
  3624.  
  3625.  
  3626.      Page 50                                                         PC-Draft II
  3627.  
  3628.  
  3629.  
  3630.  
  3631.  
  3632.  
  3633.  
  3634.  
  3635.  
  3636.  
  3637.  
  3638.  
  3639.           Object Manipulation:
  3640.  
  3641.                Object (x1,y1,x2,y2)
  3642.                Drop
  3643.                Reverse
  3644.                Expand
  3645.                Enlarge
  3646.                Contract
  3647.                Small
  3648.  
  3649.           File: (Load or Save followed by:  "Screen A:PIC\SAMPLE.PIC")
  3650.  
  3651.                Load Screen    <FilePath>
  3652.                Save Screen    <FilePath>
  3653.                Load Drawing   <FilePath>
  3654.                Save Drawing   <FilePath>
  3655.                Load Pattern   <FilePath>
  3656.                Load Font      <FilePath>
  3657.                Load Object    <FilePath>
  3658.                Save Object    <FilePath>
  3659.                Load Macro     <FilePath>
  3660.                Save Macro     <FilePath>
  3661.                Load Points    <FilePath>     ( graph points )
  3662.  
  3663.           Other:
  3664.  
  3665.                Wait (#)       ( # = 1/4 second pause )
  3666.                %              ( end Record Macro     )
  3667.                ; comment
  3668.  
  3669.           Program Control:
  3670.  
  3671.                Procedure <name>
  3672.                 .
  3673.                 .
  3674.                End
  3675.  
  3676.                Repeat (#)     ( loop # times )
  3677.                 .
  3678.                 .
  3679.                End
  3680.  
  3681.                Quit      ( end PIX )
  3682.  
  3683.           Variables:    26 integer vars: [A..Z] can be used for any parm.
  3684.  
  3685.                Let X = #  ( assign value )
  3686.                Inc X           ( increment )
  3687.                Dec X           ( decrement )
  3688.  
  3689.  
  3690.  
  3691.  
  3692.      PIX Language                                                        Page 51
  3693.  
  3694.  
  3695.  
  3696.  
  3697.  
  3698.  
  3699.  
  3700.  
  3701.  
  3702.  
  3703.  
  3704.  
  3705.                              Summary of Drawing Commands
  3706.  
  3707.  
  3708.  
  3709.           A - Arc               N - sNap on/off      Object Manipulation
  3710.  
  3711.           B - Box               O - Object grab      E - Enlarge Object
  3712.  
  3713.           C - Circle            P - Paint            C - Contract Object
  3714.  
  3715.           D - Drop Object       Q - Quick View       L - Large Object
  3716.  
  3717.           E - Erase mode        R - Rectangle        O - rOtate Object
  3718.  
  3719.           F - Free Draw         S - Suspend          S - Small Object
  3720.  
  3721.           G - Graph             T - Text mode        Alt-E - Ellipse
  3722.  
  3723.           H - Home              U - Undo             Alt-P - Control
  3724.                                                      Panel on/off
  3725.           I - grId on/off       V - curVe
  3726.  
  3727.           J - Just Paint        W - Write            - (minus) - decre-
  3728.                                                      ment cursor inc-
  3729.           K - Kursor change     X - Xfer font        rement value
  3730.  
  3731.           L - Line              Y - spraY can        + (plus) -
  3732.                                                      increment cursor
  3733.           M - Multi-line        Z - Zoom             increment value
  3734.  
  3735.           F1 - F Key menu                            . (period) - Direct
  3736.                                 F2 - Drawing menuon/offMove
  3737.  
  3738.                                 F4 - PatternsF3 - File menu
  3739.                                                      Shift F1-F10 - Set
  3740.                                 F6 - Font EditorF5 - Drawing modeMarker
  3741.           menu
  3742.                                 F8 - Print           Alt F1-F10 - Move
  3743.           F7 - Graphs menu                           to Marker
  3744.                                 F10 - Exit
  3745.           F9 - Erase Screen                          Alt W - Window
  3746.                                 Ctrl-F1 - change     Off/On
  3747.                                 colorAlt-F9 - Erase Draw-
  3748.           ing
  3749.  
  3750.  
  3751.  
  3752.  
  3753.  
  3754.  
  3755.  
  3756.  
  3757.  
  3758.      Page 52                                                         PC-Draft II
  3759.  
  3760.  
  3761.  
  3762.  
  3763.  
  3764.  
  3765.  
  3766.  
  3767.  
  3768.  
  3769.  
  3770.  
  3771.                                         Index
  3772.  
  3773.           Arc  16, 43                             SpraY Can  19
  3774.           Bar Graph  29                           Text  16
  3775.           Box  15, 41                             Transfer to Font  18
  3776.                Printing  35                       Window  21
  3777.           CAPTURE.COM  36                         Write (Graphic Font) 
  3778.           Circle  15, 41                               17
  3779.           Clearing the Screen  11                 Zoom  18
  3780.           Color  21, 44                      Drawing mode  20, 31
  3781.           Compressed Files  12               Drop  43
  3782.           CONFIG.SYS  4                      Drop Object  17
  3783.           Contract  43                       DWG file  12
  3784.           Contract Object  18                Ellipse  15
  3785.           Control Panel  9                   Ending PC-Draft  13
  3786.           Cursor                             Enlarge  43
  3787.                Command  20                   Enlarge Object  18
  3788.                Increment  7                  Epson  33
  3789.                Mouse  8, 20                  Erase  42
  3790.                PIX Command  45               Erasing  11
  3791.                PIX Commands  40              Exit  13
  3792.                suspend  17, 26                    Ending Macros  26
  3793.                Type  8                            PIX  38
  3794.           Curve  15, 42                      Expand  43
  3795.           Direct Move  10                    Features  1
  3796.           Directory  13                      File Names  6
  3797.                Installation  4               Files  6
  3798.           Drawing                                 .FON  24
  3799.                Printing  35                       .MAC  26
  3800.           Drawing Area  9                         .OBJ  23
  3801.           Drawing Commands                        .PAT  22
  3802.                Arc  16                            .PIC & .DWG  12
  3803.                Box  15                            .PTS  29
  3804.                Circle  15                         .SCR.  37
  3805.                Color  21                          Compressed  12
  3806.                Curve  15                          CONFIG.SYS  4
  3807.                Drop Object  17                    DRAFT2.CFG  4
  3808.                Ellipse  15                        GEM format  34
  3809.                Free Draw  15                      Import ASCII  16
  3810.                Graph  29                          Importing ASCII  27
  3811.                grId  20                           Installation  4
  3812.                Just paint  19                     Naming conventions 
  3813.                Kursor  20                              6
  3814.                Line  14                           printing to  34
  3815.                Multi-Line  14                FON file  25
  3816.                Object  17                    Fonts  24
  3817.                Paint  16                          Write command  17
  3818.                Quick view  21                Free Draw  15
  3819.                Rectangle  15                 GEM  34
  3820.                sNap  21                      Gotoxy  40
  3821.  
  3822.  
  3823.  
  3824.      Index                                                               Page 53
  3825.  
  3826.  
  3827.  
  3828.  
  3829.  
  3830.  
  3831.  
  3832.  
  3833.  
  3834.  
  3835.  
  3836.  
  3837.           Graph  41                               IDS Microprism  34
  3838.                Points  29                         LaserJet  33
  3839.                Type  29                           Okidata  33
  3840.           Graphic Macros  26                      resolution modes  32
  3841.           Graphs  29                         Printing  32
  3842.           GrId  20                           Procedure  44
  3843.           Hercules  3                        PTS file  29
  3844.           Home  10, 43                       Quick view  21
  3845.           HP LaserJet+  33                   Rectangle  15, 41
  3846.           Import text  27                    Relative Cursor Increment 
  3847.           Installation  4                              26
  3848.           Just paint  19                     Repeat  44
  3849.           Kursor  20, 43                     Replace Drawing Mode  31
  3850.           Large Object  18                   Reverse  43
  3851.           Laser printer  32                  Reverse Object  18
  3852.           Line  14, 41                       Rotate Object  18
  3853.           Line Graph  29                     SCR file  37
  3854.           MAC file  26                       Screen
  3855.                Structure  27                      Capture  36
  3856.           Macros  26                              Printing  34
  3857.           Markers  10                        Search directory  13
  3858.           Menus  8                           Small  43
  3859.           MicroSoft  4                       Small Object  18
  3860.           Mode  31, 43                       SNap  21
  3861.           Mouse                              SpraY Can  19
  3862.                buttons  5                    Suspend
  3863.                cursor  8, 20                      Cursor  26
  3864.                driver  4                     Text  16, 43
  3865.           Move                               Tog  43
  3866.                direct  10                    Trace (PIX)  38
  3867.                screen  10                    Transfer to Font  18
  3868.                to marker  10                 Transparent Drawing Mode 
  3869.           Multi-Line  14, 42                           31
  3870.           OBJ file  23                       Undo  11, 43
  3871.           Object  17, 23, 41                 Window  21, 41
  3872.           Object Manipulation  17            Write  43
  3873.           Overlay Drawing Mode  31           Write (Graphic Font)  17
  3874.           Paint  16, 43                      Xfer  18
  3875.           PAT file  22                       Zoom  18
  3876.           Pattern  22, 43                    [K]ursor  8
  3877.           PIC file  12
  3878.                Capture  36
  3879.           Pie Graph  29
  3880.           PIX graphics language  37
  3881.           Printers  5
  3882.                C.Itoh  34
  3883.                DeskJet  33
  3884.                Epson  33
  3885.                GEM .IMG files  34
  3886.                IBM dot matrix  33
  3887.  
  3888.  
  3889.  
  3890.      Page 54                                                         PC-Draft II
  3891.  
  3892.  
  3893.  
  3894.  
  3895.  
  3896.  
  3897.  
  3898.  
  3899.  
  3900.  
  3901.  
  3902.  
  3903.  
  3904.  
  3905.  
  3906.  
  3907.  
  3908.  
  3909.  
  3910.  
  3911.  
  3912.  
  3913.  
  3914.  
  3915.  
  3916.  
  3917.  
  3918.  
  3919.  
  3920.  
  3921.  
  3922.  
  3923.  
  3924.  
  3925.  
  3926.  
  3927.  
  3928.  
  3929.  
  3930.  
  3931.  
  3932.  
  3933.  
  3934.  
  3935.  
  3936.  
  3937.  
  3938.  
  3939.  
  3940.  
  3941.  
  3942.  
  3943.  
  3944.  
  3945.  
  3946.  
  3947.  
  3948.  
  3949.  
  3950.  
  3951.  
  3952.  
  3953.  
  3954.  
  3955.  
  3956.      Index                                                               Page 55
  3957.  
  3958.  
  3959.  
  3960.  
  3961.  
  3962.