home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / graf / keydraw3.zip / KD_DOC.5_9 < prev    next >
Text File  |  1988-06-23  |  60KB  |  2,707 lines

  1.  
  2.  
  3.  
  4.  
  5.      ──────────────────────────────────────────
  6.  
  7.      5 - DRAWING EXAMPLES
  8.      ──────────────────────────────────────────
  9.  
  10.      Start out using the program by experiment-
  11.      ing. Try using the various  functions  and
  12.      actions  and  noting  the  results. With a
  13.      little time and practice, using  the  pro-
  14.      gram  becomes very fast and efficient. For
  15.      major works, take time  to  plan  out  the
  16.      order  in  which you will create the draw-
  17.      ing. It is generally best  to  start  with
  18.      the details, shrink these down and combine
  19.      them to produce the final drawing.
  20.  
  21.      If you want the printed  drawing  to  look
  22.      like  the screen, the reverse video action
  23.      should be chosen  from  <F1>  just  before
  24.      printing.   This  is  useful  for  showing
  25.      things like  planetoids,  paintings,  etc,
  26.      because the black background is more natu-
  27.      ral. Mechanical drawings should be printed
  28.      out  without  reversing the screen so that
  29.      they correspond to the standard method  of
  30.      viewing, black print on white.
  31.  
  32.       [GIRLNC]            [GIRLRC]
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.      Figure  5-1  shows  GIRL.SCN in normal and
  43.      reverse video. In this  case  the  reverse
  44.      video  should  be used before printing for
  45.      the best results.
  46.  
  47.  
  48.                            DRAWING EXAMPLES 5-1
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.   Since  many  of  the  actions  take  place
  72.   inside of boxed areas it is  advisable  to
  73.   create  parts  of a drawing separately and
  74.   then combine them at the end. This can  be
  75.   accomplished by drawing the various compo-
  76.   nents on different parts of the screen  or
  77.   by  using  a screen for each component and
  78.   combining screens using the copy action of
  79.   <F7>.  Alternately,  layers can be used to
  80.   keep portions of the drawing separate.
  81.  
  82.   The following contains a number of  simple
  83.   examples  to  help  get  you  started. The
  84.   examples are written  out  in  long  form.
  85.   Elsewhere  in this manual the examples are
  86.   provided in a MaCRo file form.
  87.  
  88.   To draw box: Move the cursor to one of the
  89.   corners  of  the box. Select desired color
  90.   of  box  with  <F10>.  Select   <F2>   and
  91.   <r>ectangle  to  display  the box as it is
  92.   drawn. Move the cursor to form the box  as
  93.   desired.  Use  the  <Shft-Cursor>  keys to
  94.   adjust the  start  point  of  the  box  if
  95.   needed.   Hit  either  <F2>,  <ENTER>,  or
  96.   <F1-F8> to complete function and draw box.
  97.   Respond <y> to the "Correct (y/n)?" prompt
  98.   to keep the box or <n> to  return  to  the
  99.   drawing as it was.
  100.  
  101.   To  draw  a circle: Move the cursor to the
  102.   desired  center  of  the  circle.   Select
  103.   desired  color  of  the  circle  with  F8.
  104.   Select <F3> and <c> for circle.  Move  the
  105.   cursor  to  the  desired  radius  and  hit
  106.   either  <F3>,  <ENTER>,  or   <F1-F8>   to
  107.   complete  function and draw circle. If the
  108.   circle is  not  properly  centered  simply
  109.   hold  down the <Shift> key while using the
  110.   cursor keys. Respond  as  desired  to  the
  111.   "Correct (y/n)?" prompt.
  112.  
  113.  
  114.   DRAWING EXAMPLES 5-2
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.      To  draw  a  line:  Move the cursor to the
  138.      start of the line. Select  <F6>  and  <l>.
  139.      Move  cursor  to position line as desired.
  140.      Use a <ENTER> or <F1-F8> <l> to mark  next
  141.      point  on line. Continue drawing lines. To
  142.      stop momentarily use the <Space  Bar>.  If
  143.      you make an error, <Back Space> can be use
  144.      to erase the last line and  redraw  up  to
  145.      where  you are. Line width can also be set
  146.      using the <w>idth command  of  the  CURSOR
  147.      MODE and changed at will while drawing the
  148.      line. The color can be varied as the  line
  149.      is drawn and you can switch back and forth
  150.      with <d>ot, <p>arallel line, and  <s>poked
  151.      line.  When  last  point  of line has been
  152.      marked, select <F6> and either <e> or  <E>
  153.      to end the line. If <E> is chosen the line
  154.      is not only drawn on the screen, but saved
  155.      to  disk under user specified name. It can
  156.      be retrieved at any angle  and  any  scale
  157.      using <F6 o>. Even if you did not save the
  158.      drawing to disk, it is still available for
  159.      reuse,   continuation   or   modification.
  160.      Select <F6 O> to redraw the last vector.
  161.  
  162.      Built in Objects: PC-KEY-DRAW  contains  a
  163.      number  of objects built into the program.
  164.      Figure 5-2 shows a number of the built  in
  165.      objects,  including  rectangle, circle and
  166.      line.  The  objects  can  be  combined  to
  167.      create  more  complex  images  or modified
  168.      with the commands  like  <F1  Ctrl-s>lide,
  169.      <m>irror,  <f>lip and more. Objects can be
  170.      created with <F6 l> and stored  as  vector
  171.      images to disk.
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.                            DRAWING EXAMPLES 5-3
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.   [primitiv]
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.   Figure 5-2. Object primitives;  from  <F2>
  221.   <r>-rectangle,  <p 3>-polygon with 3 sides
  222.   (triangle), <p  4>-polygon  with  4  sides
  223.   (square), <p 5>-polygon with 5 sides (pen-
  224.   tagon), <p 6>-polygon with 6 sides  (hexa-
  225.   gon), and <p 7>-polygon with 7 sides (hep-
  226.   tagon); from <F3> <c>-circle, <e>-ellipse,
  227.   <a>-arc,   <A>-pie   shape  arc,  <r>-rose
  228.   curve, <t>-trig (sine curve),  <s>-spiral,
  229.   and  <b>-b-spline  curve;  and  from  <F6>
  230.   <l>-line and  <s>-spoke.  Figure  5-2  was
  231.   created  in  the high resolution mode. The
  232.   prompt line shows that "parallel line"  is
  233.   about to be selected.
  234.  
  235.  
  236.   To  erase  an  area:  Move the cursor to a
  237.   position at one of the corners of the area
  238.   to  be  erased.  Select <F7 e> to mark the
  239.   corner. Move the  cursor  to  enclose  the
  240.   desired area with the display box. As with
  241.   box the <Shft-cursor> keys can be used  to
  242.   modify the initial corner position. Select
  243.   <ENTER> or <F1-F8> to  mark  the  opposite
  244.   corner. Copy works the same way.
  245.  
  246.   DRAWING EXAMPLES 5-4
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.      [planet]
  270.                       Creating    3-D   looking
  271.                       spheres or planetoids  is
  272.                       easy   using   the  spray
  273.                       paint  feature  of  <F4>.
  274.                       Start by drawing a circle
  275.                       of  desired  size,   next
  276.                       paint  it  with  <F5>  as
  277.                       desired. Move the  cursor
  278.                       to  a location on the now
  279.                       painted circle and select
  280.      <F4 s> to spray paint one of the colors in
  281.      the circle or if you prefer use <F4 Alt-s>
  282.      to  spray  paint  all  foreground  colors.
  283.      Next move the cursor to one corner of  the
  284.      square  containing  the  circle and select
  285.      <ENTER> to mark that corner. Next  enclose
  286.      the  circle  in a box by moving the cursor
  287.      and select <ENTER> a third time  to  begin
  288.      spray  painting.  Figure  5-3 shows what a
  289.      simple planetoid might look like. This  is
  290.      a fun operation to use with the key macro,
  291.      since by varying the cursor  speed  before
  292.      calling  the macro a different size plane-
  293.      toid will result.
  294.  
  295.      Very complex and interesting patterns  can
  296.      be  created  by  copying and area and then
  297.      moving off the screen with  <F7  a>nimate.
  298.      Try  this with the file KD-PTRN.PIC, which
  299.      can be retrieved with <F7 o>ld.  When  you
  300.      obtain  a  particular  pattern you want to
  301.      use leave it on the screen with <F7 M> and
  302.      then  copy  it  again.  Next move over the
  303.      object you wish to  paint  with  this  new
  304.      color pattern. Select <F7 Ctrl-m> to paint
  305.      the object. (Note the object should be  in
  306.      color 3 for best results.)
  307.  
  308.  
  309.  
  310.  
  311.  
  312.                            DRAWING EXAMPLES 5-5
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.   [3dbox]
  336.                    3-D oblique drawings  can
  337.                    be  made quickly from 2-D
  338.                    drawings. In high resolu-
  339.                    tion, draw a box with <F2
  340.                    r>; copy the box with <F7
  341.                    c>;  set the cursor speed
  342.                    to 1; move one  space  to
  343.                    the  left  and  one space
  344.                    up; select <F7  s>;  move
  345.                    alternately one step left
  346.   and one step up until cube is  of  desired
  347.   size;  select <F7 M>; and the cube is com-
  348.   plete. Figure 5-4 shows just such a cube.
  349.  
  350.   Schematics and flow charts can be  readily
  351.   created  from predefined symbol libraries.
  352.   Creating your own symbol libraries is easy
  353.   and straight forward. For objects that you
  354.   want to bring in at  different  sizes  and
  355.   angles  the features of <F6> are ideal. As
  356.   an illustration,  lets  consider  creating
  357.   symbols  of furniture to use in laying out
  358.   an office. Start by setting the  scale  of
  359.   the  screen  so  that  the  furniture will
  360.   nearly fill the screen when drawn  to  get
  361.   the  maximum  resolution. Move to 0,0 with
  362.   <Alt-1>, select <F6 l, d, p, s>  to  start
  363.   drawing  the item. When you have completed
  364.   drawing the item select <F6 E> to end line
  365.   drawing  save  the  vector  image to disk.
  366.   Give the item an appropriate name  and  go
  367.   to  the next item. When you are working on
  368.   the  room  layout  simply  call   up   the
  369.   required  object  from  disk using <F6 o>,
  370.   rotate it if desired, and place  it  where
  371.   you  want.  See  Figures 5-5 and 5-6 for a
  372.   sample hydraulic schematic.
  373.  
  374.  
  375.  
  376.  
  377.  
  378.   DRAWING EXAMPLES 5-6
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.      [hydro]
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.      Figure 5-5 Schematic Sample
  419.  
  420.  
  421.          [fluid2]
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.      Figure 5-6 Schematic Sample
  435.  
  436.  
  437.      Special effects can be created by  setting
  438.      the   background  attribute  to  something
  439.      other  then  the  actual  background.  Try
  440.      setting  the  background  with <B> to <1>.
  441.      Now draw a box or circle or line. Note how
  442.      the  object is left behind as you move the
  443.  
  444.                            DRAWING EXAMPLES 5-7
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.   cursor.  When  you hit the <ENTER> key the
  468.   screen is refreshed  and  then  the  final
  469.   box/circle/line  is  drawn,  but sometimes
  470.   it is desirable to use <B> to create  pat-
  471.   terns  and other effects much quicker than
  472.   otherwise possible. At any time  you  wish
  473.   to  preserve what the screen shows, select
  474.   <k>eep and it will be saved.
  475.  
  476.   16 Colors: If you have a  composite  color
  477.   monitor  or  TV set you can obtain sixteen
  478.   colors instead of the normal  4  available
  479.   in  RGB. Set the color palette to the sec-
  480.   ond palette  where  color  1=Green,  color
  481.   2=Red  and  color  3=Yellow.  Draw several
  482.   boxes, circles, or polygons on the screen.
  483.   Move  the cursor to within one of the fig-
  484.   ures and select <F5  Alt-p>aint.  A  color
  485.   bar  will  appear showing 16 color choice,
  486.   but these won't look that great. Select  a
  487.   </>  and the colors change to 16 distinct,
  488.   vibrant colors  on  a  composite  monitor.
  489.   Select  the  number you desire and specify
  490.   the color of the figure and the object  is
  491.   painted.  Most  of the other drawing func-
  492.   tions only recognize the four primary col-
  493.   ors so some care must be taken when creat-
  494.   ing a composite picture.
  495.  
  496.   Macros included with PC-KEY-DRAW can be an
  497.   ideal  method  of  learning how to use the
  498.   program. By watching the  macros  you  can
  499.   get  a feel for what can be done. By read-
  500.   ing the macro  files  you  can  learn  the
  501.   exact  key  strokes  required  to create a
  502.   given effect. See the following section on
  503.   editing  macros  for more information. Try
  504.   entering the key strokes as they  are  and
  505.   see  what  happens.  Note that some macros
  506.   start with a lot of initialization,  while
  507.   others get right down to drawing.
  508.  
  509.  
  510.   DRAWING EXAMPLES 5-8
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.      Several  things can be done to slow macros
  534.      down so that what  is  happening  is  more
  535.      visible.  Try  turning on the Help menu by
  536.      setting the program to Novice mode in  the
  537.      <Ctrl-s>tatus  Screen.  Remove  the *|2 or
  538.      *|1 line in the macro so that  the  cursor
  539.      and  prompt  are  shown  when the macro is
  540.      run. This makes it run a lot  slower.  You
  541.      can even add <Alt-p>ause commands at vari-
  542.      ous places in a macro so that it stops for
  543.      awhile before proceeding.
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.                            DRAWING EXAMPLES 5-9
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.      ──────────────────────────────────────────
  600.  
  601.      6 - KEY MACRO
  602.      ──────────────────────────────────────────
  603.  
  604.      Perhaps one of the most powerful functions
  605.      of  PC-KEY-DRAW  is the key macro command,
  606.      because it has so many different  uses.  I
  607.      have  yet to fully explore all of the uses
  608.      of the key macro, but they include  saving
  609.      entire  drawings,  creating  slide  shows,
  610.      saving commonly used routines/figures, and
  611.      performing  repetitive operations. The key
  612.      macro command works by  recording  all  of
  613.      the  key  strokes you make and saving them
  614.      to disk in a sequential  ASCII  file.  The
  615.      program  keeps track of the same key being
  616.      hit a multiple number of times and records
  617.      not  only the key, but its repetition num-
  618.      ber. Key macro files  can  be  very  small
  619.      and still do quite a lot.
  620.  
  621.      Saving  Entire  Drawings: PC-KEY-DRAW pro-
  622.      vides numerous ways  to  save  a  drawing,
  623.      which  way you use depends on a variety of
  624.      factors. The key macro  offers  a  way  to
  625.      save  a  drawing  that is rather different
  626.      from the rest, because, instead of  saving
  627.      a  completed  drawing,  you are saving the
  628.      steps to create that drawing. When the key
  629.      macro  is used to save a drawing it should
  630.      start by properly  initializing  the  pro-
  631.      gram,  so  that each time it is called the
  632.      result will be the same.  After  selecting
  633.      create macro with <Alt-k c> and naming it,
  634.      initialize  the  program.   Initialization
  635.      should  start  with  refreshing the screen
  636.      with <F8 f>, setting  the  cursor  to  0,0
  637.      with  <Alt-1>, setting the cursor speed to
  638.      one with <Shft-F9>, and setting the  color
  639.      to  1  with  <Shft-F10>.  Then  proceed to
  640.      create the drawing. When  the  drawing  is
  641.  
  642.                                   KEY MACRO 6-1
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.   complete, end the key  macro  with  <Alt-k
  666.   e>.  The  drawing can then be redrawn with
  667.   <Alt-k r> and the  macro  name.  IRIS2.MCR
  668.   (on  Library  Disk  #2)  is  an  excellent
  669.   example  of  saving  an  entire   drawing.
  670.   IRIS2.MCR  must  be  drawn from the medium
  671.   resolution  mode  and  started  with  both
  672.   SCreen 1 and SCreen 2 clear.
  673.  
  674.   Slide  Shows: Very interesting slide shows
  675.   can be created quickly  and  easily  using
  676.   the  key macro command. The complete draw-
  677.   ing capability is available to be used  in
  678.   the  slide  show.  Slide shows are created
  679.   simply by starting the macro and then per-
  680.   forming  the  desired steps. This might be
  681.   as  simple  as  calling  up  a  series  of
  682.   already  completed drawings and pausing in
  683.   between them or  may  include  the  actual
  684.   creation  of  the  drawing  as part of the
  685.   show. The DEMO.BAT (formally SAMPLE) macro
  686.   included   on  the  program  diskette  was
  687.   created simply by drawing what was wanted.
  688.   As  with  the  saving  of a drawing, slide
  689.   shows  should  be  initialized  for   best
  690.   results.  Portions  of a slide show can be
  691.   done separately and then combined by link-
  692.   ing  or  merging.  Linking is performed by
  693.   calling the next sequence from the end  of
  694.   the  first. In this way slide shows can be
  695.   very long or continuous. Merging is accom-
  696.   plished  using  a word processor and actu-
  697.   ally combining files. See  Editing  Macros
  698.   for more information.
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.   KEY MACRO 6-2
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.      The <*> (star) command is useful for slide
  732.      shows and you may want to  include  it  as
  733.      part  of  the initialization. Normally the
  734.      prompts for the program will be  displayed
  735.      as  a  macro is run, but by using a single
  736.      <*> at the beginning of  the  command  all
  737.      printed  prompts  can  be suppressed. This
  738.      not only improves the  appearance  of  the
  739.      slide  show,  but  it  greatly  speeds the
  740.      execution time. Entering  <*>  twice  will
  741.      stop printing of prompts and will hide the
  742.      cursor. From a text editor put the follow-
  743.      ing line in to stop the prompts:
  744.  
  745.          *|1
  746.  
  747.      or  use  the following to stop the prompts
  748.      and hide the cursor:
  749.  
  750.          *|2
  751.  
  752.      or to hide  the  prompts,  cursor,  object
  753.      capture  lines,  and  most  cursor related
  754.      actions, such as circle, arc, and  rectan-
  755.      gle rubberbanding until sizing is complete
  756.      use:
  757.  
  758.          *|3
  759.  
  760.      or to hide  the  prompts,  cursor,  object
  761.      capture lines, and all cursor line rubber-
  762.      banding use:
  763.  
  764.          *|4
  765.  
  766.      Future versions may use higher  valves  of
  767.      <*> for various special effects.
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.                                   KEY MACRO 6-3
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.   Star commands take effect immediately  and
  798.   absolutely.  Generally the first line of a
  799.   macro is a star command. A  star  command,
  800.   once  started, remains in effect until the
  801.   macro ends or until another  star  command
  802.   takes  effect.  Star commands are provided
  803.   as a means to speed up macro execution and
  804.   hide some of the behind scenes action from
  805.   the viewer. To display all activity during
  806.   a macro use:
  807.  
  808.       *|0
  809.  
  810.   Note  that  with  *|3 and *|4 some special
  811.   effects are lost, in particular those that
  812.   use  <B>ackground to leave behind color as
  813.   the cursor is moved will  not  behave  the
  814.   same if the cursor drawing is turned off.
  815.  
  816.   Saving   Commonly  Used  Routines/Figures:
  817.   Certain operations can be saved for  later
  818.   use  in another drawing. These saved oper-
  819.   ations can be called from disk  as  needed
  820.   to  perform  the  required  task, and save
  821.   having to manually do the task. Generally,
  822.   routines  should  include minimal initial-
  823.   ization for the maximum flexibility. Vari-
  824.   ous  figures  that  are  commonly used can
  825.   also be saved with the key macro  command,
  826.   as  they  will  probably require less disk
  827.   space then if saved with one of the  other
  828.   methods.  The  penalty for doing so is the
  829.   time required to create the figure on  the
  830.   screen  will  be longer than that required
  831.   to simply call the completed drawing  from
  832.   disk.  However, for saving border patterns
  833.   and the like, the  key  macro  command  is
  834.   ideal.
  835.  
  836.  
  837.  
  838.  
  839.  
  840.   KEY MACRO 6-4
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.      Repetitive  Operations:  Key macros can be
  864.      used  to   automate   certain   repetitive
  865.      actions  and save you significant time. An
  866.      example of such is the creating of concen-
  867.      tric  circles or ellipses using all of the
  868.      available colors. Try the following:
  869.      1. Locate the cursor in the screen center.
  870.      2. Set the cursor speed to 1 and the color
  871.         to one.
  872.      3.  Start  the  key  macro  with  the name
  873.         CIRCLE.
  874.      4. Draw a circle of radius one pixel.
  875.      5. End the circle and confirm that  it  is
  876.         correct.
  877.      6.  Move  the  cursor to the center of the
  878.         circle using <C>.
  879.      7. Step the cursor speed up one using  the
  880.         <+> key.
  881.      8.  Step  the color up one using the <F10>
  882.         key.
  883.      9. Select <Alt-k> and run the macro CIRCLE
  884.         from itself.
  885.  
  886.      At  this  point  the  program should start
  887.      drawing circle  after  circle,  each  time
  888.      incrementing  the  color  and  the size by
  889.      one. To stop the macro use <Esc>. Try some
  890.      other  short  drawings and linking them to
  891.      themselves.
  892.  
  893.      Configuration: While PC-KEY-DRAW  provides
  894.      a Configuration Screen, it does not remem-
  895.      ber everything that you  may  want  it  to
  896.      remember  the  next  time you run the pro-
  897.      gram. A simple solution is to create a key
  898.      macro that does the desired configuration,
  899.      such as adjusting the screen. Version  3.1
  900.      or  later  allow  macros to be called from
  901.      DOS when the program is called, by  simply
  902.      entering the name of the macro on the com-
  903.      mand line after the program name, followed
  904.      by a space.
  905.  
  906.                                   KEY MACRO 6-5
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.   Editing  Macros:  The  editing  of  macros
  930.   created from version 3 is limited to using
  931.   a word processor.  The  file  is  straight
  932.   ASCII,  but beware that what may look like
  933.   a common space  CHR$(32)  is  actually  an
  934.   ASCII  zero CHR$(0). Also beware that cur-
  935.   sor position is  relative,  not  absolute.
  936.   The  use  of  a background editor, such as
  937.   Sidekick, can be of great  benefit,  since
  938.   it  can be called up while you are working
  939.   in PC-KEY-DRAW. Be sure that the  particu-
  940.   lar background program you are using works
  941.   when the screen is in a graphics mode!
  942.  
  943.   The macro files are set up  so  that  each
  944.   line  is a command followed by a separator
  945.   (|) and the  number  of  repetitions.  The
  946.   command  is  the  actual  key stroke code.
  947.   While MaCRo files can be  edited  directly
  948.   it is easier to first convert them to TeXT
  949.   files using KD-TRANS.EXE.
  950.  
  951.   Since errors you may make are recorded you
  952.   may want to edit them out of a slide show.
  953.   This can be done easily to the ASCII  file
  954.   by  removing only the commands and not the
  955.   cursor movement that may occur as part  of
  956.   the command.
  957.  
  958.   One of the most common editing method will
  959.   be the merging of files together to create
  960.   one big file. When merging files care must
  961.   be taken to ensure that all parameters are
  962.   set  to  the  value  needed by consecutive
  963.   parts of the macro. For example the cursor
  964.   position  at  the  start  of  a macro will
  965.   determine the actual end result.
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.   KEY MACRO 6-6
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.      One handy feature of a key  macro  is  the
  996.      ability  to call a second macro at the end
  997.      of the first, allowing unlimited macros to
  998.      be  chained  together  when  run,  but  to
  999.      reside separately on disk. To avoid having
  1000.      to edit the macro, work in reverse, start-
  1001.      ing with the last  section  first  and  be
  1002.      sure that each macro includes its own ini-
  1003.      tialization.
  1004.  
  1005.      Macro files contain the key strokes  used,
  1006.      followed  by  a separator (|) and a number
  1007.      to indicate the number of  times  the  key
  1008.      was hit in a row. If the key was a command
  1009.      it will only appear once  while  something
  1010.      like  a  cursor movement key may have been
  1011.      hit many times in a row. Text can be added
  1012.      after the repeat number for the purpose of
  1013.      placing remarks in a macro. This is  espe-
  1014.      cially  convenient  for including notes to
  1015.      others on what the macro does and  how  to
  1016.      use  it.  The following is a short example
  1017.      of what a macro file would look like after
  1018.      being  translated  with  KD-TRANS.EXE to a
  1019.      TeXT file:
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.                                   KEY MACRO 6-7
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.   SHFT-F10  |1     Force Color to Color 1
  1062.   SHFT-F9   |1     Force Cursor Speed to 1
  1063.   +         |4     Add 4 to the Cursor Speed
  1064.   F2        |1     Select Function 2
  1065.   p         |1     Select polygon
  1066.   5         |1     5 sided
  1067.   RIGHT     |9     Move right 9 times
  1068.   [         |3     Rotate the polygon
  1069.   F9        |1     Drop speed to 1
  1070.   [         |1     Rotate the polygon
  1071.   ENTER     |2     End and indicate correct.
  1072.   F9        |1     Toggle speed back to 5
  1073.   LEFT      |5     Move into polygon
  1074.   F5        |1     Select F5 Paint & Pattern
  1075.   ALT-P     |1     Select Alternate paint
  1076.   8         |1     Choose Color 8 for fill
  1077.   1         |1     Choose Color 1 for border
  1078.   ENTER     |1     Confirm correct.
  1079.   ALT-K     |1     Select Key Macro
  1080.   e         |1     End
  1081.  
  1082.   You  can  duplicate  the  above  by simply
  1083.   entering in the above keys the  number  of
  1084.   times  indicated. The remarks to the right
  1085.   of  the  repeat  number  should   not   be
  1086.   entered.  Note  that  KD-TRANS expects the
  1087.   key stroke name to be exactly  10  charac-
  1088.   ters and spaces.
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.   KEY MACRO 6-8
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.      DOS  and Macros: Macros can be called from
  1128.      DOS as follows:
  1129.  
  1130.          KD-DRAW FILENAME
  1131.  
  1132.      where FILENAME is the name  of  the  macro
  1133.      file  to be called once KD-DRAW is loaded.
  1134.      A MCR extension  is  assumed.  If  another
  1135.      extension  is used it must be specified or
  1136.      the file will not be found. This  capabil-
  1137.      ity  allows the slide shows to be run by a
  1138.      user knowing nothing about PC-KEY-DRAW  or
  1139.      allows  set-up  routines to be run to cus-
  1140.      tomize  PC-KEY-DRAW  to  your   particular
  1141.      application.
  1142.  
  1143.      Macros  can  be called from BATch files or
  1144.      macros can be DOS BATch files. It is  pos-
  1145.      sible  to  create  a  macro that is both a
  1146.      BATch file and a PC-KEY-DRAW  macro.  This
  1147.      allows  for  lots  of possibilities with a
  1148.      minimum of extra files on the  disk.  Some
  1149.      care  must  be  taken  in setting up BATch
  1150.      file and MaCRo file combinations. Use  the
  1151.      samples  on  the  program disk as a guide.
  1152.      Basically the BATch file is the first part
  1153.      and  the MaCRo the second. Since no action
  1154.      is taken in a macro file until the separa-
  1155.      tor  (|)  is  located  the  BATch  file is
  1156.      ignored by the macro.
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.                                   KEY MACRO 6-9
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.   Run  Time Mode: Starting with version 3.24
  1194.   PC-KEY-DRAW can be set to work  in  a  Run
  1195.   Time  Mode,  so that the end user can view
  1196.   and run macros without  any  knowledge  of
  1197.   PC-KEY-DRAW.  To turn PC-KEY-DRAW into the
  1198.   run time mode simply remove or rename  KD-
  1199.   DRAW.HLP.  When  KD-DRAW  is called, if it
  1200.   does not find KD-DRAW.HLP, it only  allows
  1201.   a  macro  to  be  run. In normal operation
  1202.   when a macro is exited  by  <Esc>,  normal
  1203.   end  of  the  macro,  or  an error control
  1204.   returns to the CURSOR MODE. In a run  time
  1205.   mode  when  the  macro  is  exited control
  1206.   returns to  DOS.  If  KD-DRAW.DFT  is  not
  1207.   found the default drive is assumed to con-
  1208.   tain everything required by the  macro  to
  1209.   run unless a drive is specified in calling
  1210.   the desired  macro,  in  which  case  that
  1211.   drive  is assumed to contained the primary
  1212.   files needed by the macro.  There  are  no
  1213.   restrictions  to  distributing PC-KEY-DRAW
  1214.   as a Run Time  program,  ie.  without  KD-
  1215.   DRAW.HLP,  except if a charge for the disk
  1216.   is made. If you wish to charge for  a  Run
  1217.   Time  version of PC-KEY-DRAW you must have
  1218.   prior written permission.
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.   KEY MACRO 6-10
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.      Hot Keys: 27 keys can be assigned a  macro
  1260.      file  name  so that when the key is struck
  1261.      the appropriate macro file is run  immedi-
  1262.      ately. The Hot keys are the following:
  1263.  
  1264.            <Shft-F1 to F8>
  1265.            <Ctrl-F1 to F10>
  1266.            <Alt-F1 to F9>
  1267.  
  1268.      If  KD-DRAW.HOT  is  found  on the program
  1269.      disk or in the program  directory  on  the
  1270.      hard  disk the Hot keys are activated. KD-
  1271.      DRAW.HOT contains the listing of  the  key
  1272.      macro  files that correspond to the appro-
  1273.      priate function keys. KD-DRAW.HOT  can  be
  1274.      edited  with any text editor that produces
  1275.      pure ASCII files.
  1276.  
  1277.      There are two primary applications for Hot
  1278.      keys. The first is to assign commonly used
  1279.      routines so that they  can  be  called  up
  1280.      quickly  as  needed. A number of such rou-
  1281.      tines are supplied on library disk #2  and
  1282.      #3.  For  example  BOLD.MCR  produces bold
  1283.      faced text from any text brought  in  with
  1284.      <F6  Ctrl-t> or <F6 Alt-t>. The second use
  1285.      of the Hot keys is for creating a tutorial
  1286.      using  the function keys with an on screen
  1287.      menu.
  1288.  
  1289.      The default HOT key file  is  KD-DRAW.HOT,
  1290.      but  HOT  key  files can have any name and
  1291.      any number of HOT key files can reside  on
  1292.      a  disk, up to the limit of disk space. To
  1293.      change to a different HOT key  use  <Alt-k
  1294.      f>unction  to  specify the name of the HOT
  1295.      key file.
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.                                  KEY MACRO 6-11
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.   MAKe  HOT LIBrary: HOT key files can be in
  1326.   two forms, raw and compiled. A raw HOT key
  1327.   file  consists of the names of MaCRo files
  1328.   next to the associated key strokes  as  in
  1329.   Figure 6-1.
  1330.  
  1331.        [hotraw]
  1332.  
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.   Figure 6-1 Sample HOT key file header with
  1343.   direct call of MaCRo files.
  1344.  
  1345.  
  1346.   When a defined  HOT  key  is  pressed  the
  1347.   appropriate  MaCRo  file is run from disk.
  1348.   While this method  of  HOT  key  operation
  1349.   works  fine,  it  can  be very wasteful of
  1350.   disk space since each MaCRo is a  separate
  1351.   file.  MAKHOTLIB.EXE allows you to compile
  1352.   or library a HOT key file so that  all  of
  1353.   the MaCRo files become part of the HOT key
  1354.   file. The first time MAKHOTLIB is run from
  1355.   DOS  it  creates a blank HOT key file that
  1356.   can be edited with  a  word  processor  or
  1357.   text  editor. If MAKHOTLIB is run when KD-
  1358.   DRAW.HOT already exists  it  will  combine
  1359.   the  KD-DRAW.HOT with the MaCRo files into
  1360.   one file. The header of the HOT  key  file
  1361.   is  changed  slightly  to reflect that the
  1362.   macros are located in the HOT key file and
  1363.   not  in a separate file. Figure 6-2 is the
  1364.   same HOT key file header after being  com-
  1365.   piled with MAKHOTLIB.EXE.
  1366.  
  1367.  
  1368.   KEY MACRO 6-12
  1369.  
  1370.  
  1371.  
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.           [hotcomp]
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.      Figure  6-2  Sample HOT key file header in
  1403.      compiled form.
  1404.  
  1405.  
  1406.      The ">" symbol is the GOTO command in  PC-
  1407.      KEY-DRAW.  It  is  used  to tell the macro
  1408.      read routine to jump to the  corresponding
  1409.      label in the file. A label in this case is
  1410.      the file  name  preceded  with  ":".  This
  1411.      would  be  all that is needed to operate a
  1412.      HOT key, but in a large file searching for
  1413.      the  appropriate label can be rather slow.
  1414.      The number following the macro  file  name
  1415.      is  the  location  of the beginning of the
  1416.      appropriate macro in  the  file,  allowing
  1417.      the macro read routine to jump directly to
  1418.      the appropriate place in the HOT key  file
  1419.      to  begin  the  macro  execution. The GOTO
  1420.      symbol (>) and the file offset  value  are
  1421.      added by MAKHOTLIB.EXE when it is run.
  1422.  
  1423.  
  1424.  
  1425.  
  1426.  
  1427.  
  1428.  
  1429.  
  1430.  
  1431.  
  1432.  
  1433.  
  1434.                                  KEY MACRO 6-13
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.   Supplied Macros: Numerous macros are  sup-
  1458.   plied  with PC-KEY-DRAW. Some are for dem-
  1459.   onstration  of  the  programs  capability,
  1460.   some  are  more entertaining then anything
  1461.   else, while others  perform  various  rou-
  1462.   tines that are of use to a serious PC-KEY-
  1463.   DRAW user. The following discusses several
  1464.   of  the  more  significant macros. Most of
  1465.   the supplied macros have remarks that  can
  1466.   be  read  using  a  text  editor or simply
  1467.   TYPEd from DOS to  show  instructions  for
  1468.   the  macro.  Use  <Alt-1>  <F6  T  a> from
  1469.   PC-KEY-DRAW  to  read  the  macro  remarks
  1470.   before  running it. Be sure to answer <n>o
  1471.   when asked if correct  or  the  text  will
  1472.   become  part of your drawing. It is a good
  1473.   idea to add remarks to any macros that you
  1474.   write.  In  particular  you should provide
  1475.   information as to any premacro  operations
  1476.   that  are  needed for successful operation
  1477.   of the macro. Remarks can be added with  a
  1478.   text editor.
  1479.  
  1480.   Sample  Demo: A sample demo is included on
  1481.   the program disk. It was created  in  sev-
  1482.   eral  sections  and  then edited together.
  1483.   Note that the prompt line has been  turned
  1484.   off  for  most  of  the demo for a cleaner
  1485.   look and faster execution. DEMO.BAT  (for-
  1486.   mally  SAMPLE.MCR)  may  stop  at  several
  1487.   points and wait for input  from  the  key-
  1488.   board  before  continuing. A short line is
  1489.   displayed in the bottom right corner  when
  1490.   the  macro  is waiting for user input. The
  1491.   <Alt-p> command could also  be  used  when
  1492.   you  want  the  macro to suspend operation
  1493.   for a specified length of  time.  DEMO.BAT
  1494.   is both the Batch file and the macro.
  1495.  
  1496.  
  1497.  
  1498.  
  1499.  
  1500.   KEY MACRO 6-14
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.      Slide  Show  Demo:  A  demo  slide show is
  1524.      included with  the  numerous  screens  and
  1525.      pictures  on  Library Disk #1. SCNSHOW.MCR
  1526.      is a macro that calls  previously  created
  1527.      screens  and partial screens using a vari-
  1528.      ety of display techniques. This method  of
  1529.      operation  is  similar to other Slide Show
  1530.      programs, but far more powerful.
  1531.  
  1532.            [iris]
  1533.  
  1534.  
  1535.  
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.  
  1542.  
  1543.  
  1544.      Figure   6-3   IRIS3.SCN   created    with
  1545.      IRIS2.MCR, Brenda Kidera.
  1546.  
  1547.  
  1548.      Drawing Demo: Library Disk #2 contains the
  1549.      macro IRIS2.MCR that creates a drawing  of
  1550.      an  iris  from  scratch. You can watch the
  1551.      moves that the artist  made  to  construct
  1552.      the  drawing. Mistakes and changes of mind
  1553.      have been left  in  to  show  the  process
  1554.      behind  the picture. The completed picture
  1555.      is contained in IRIS3.SCN. My wife  Brenda
  1556.      drew  this picture. She is an artist which
  1557.      becomes very clear seeing the  results  of
  1558.      IRIS2.MCR.  IRIS2  took 4 hours from start
  1559.      to finish to create, edit the  macro,  and
  1560.      eat  dinner.  IRIS2.MCR must be started in
  1561.      medium resolution mode for proper results.
  1562.  
  1563.  
  1564.  
  1565.  
  1566.                                  KEY MACRO 6-15
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.   Routines: Library Disk #2 contains several
  1590.   useful routines. Two of  the  most  useful
  1591.   are  OVERLAY.MCR  and  OVERLAY2.MCR.  Both
  1592.   take an object  currently  being  animated
  1593.   and  through a series of steps overlay the
  1594.   object onto the background. Which one  you
  1595.   use  depends  on  the object that is to be
  1596.   overlaid. OVERLAY will leave a  dark  out-
  1597.   line  around the object which is ideal for
  1598.   many, but not all objects.  OVERLAY2  does
  1599.   not  leave  the  outline  and is therefore
  1600.   better for certain  objects.  Both  macros
  1601.   were  written  to make use of SCreen 2 and
  1602.   SCreen F7 as workspaces,  so  anything  in
  1603.   these screens when you call the macro will
  1604.   be lost. It would be easy to write a macro
  1605.   that  does  not use SCreen 2, but uses the
  1606.   disk for temporary storage instead.
  1607.  
  1608.   A number of text  oriented  routines  have
  1609.   been  compiled and included in KD-DRAW.HOT
  1610.   on the program disk.   It  is  recommended
  1611.   that the header for KD-DRAW.HOT be printed
  1612.   out and used as a reference during program
  1613.   operation.  For  more  information  on the
  1614.   individual routines see the  corresponding
  1615.   files  on  library  disks  #2, #3, and #4.
  1616.   Many the macros have instructions  in  the
  1617.   form of remark statements in the macro.
  1618.  
  1619.   Create  your  own routines and add them to
  1620.   KD-DRAW.HOT or create another HOT key file
  1621.   for the routines that you commonly use.
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.   KEY MACRO 6-16
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.      ──────────────────────────────────────────
  1656.  
  1657.      7 - PAGES AND LAYERS
  1658.      ──────────────────────────────────────────
  1659.  
  1660.      PC-KEY-DRAW   version  3  allows  you  the
  1661.      option to draw using up to 64 pages or  64
  1662.      layers. The two cannot be used at the same
  1663.      time. Pages and layers are  saved  on  the
  1664.      workspace  disk, which can either be a RAM
  1665.      disk, hard disk, or floppy. In a page mode
  1666.      a  drawing  2560  pixels by 1600 pixels is
  1667.      possible in the  medium  resolution  mode.
  1668.      To  use all 64 pages/layers about 1.2 megs
  1669.      of memory is required. In addition, to use
  1670.      more  than  about 20 pages/layers you must
  1671.      set up a subdirectory for  the  workspace.
  1672.      See  your  DOS  manual  for information on
  1673.      creating   and    using    subdirectories.
  1674.  
  1675.          [work1]
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682.  
  1683.  
  1684.  
  1685.  
  1686.  
  1687.  
  1688.      Figure  7-1  PC-KEY-DRAW  in  SCreen 1 and
  1689.      PaGe 00.
  1690.  
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698.                              PAGES & LAYERS 7-1
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721.   Screens:  There are four screens available
  1722.   for creating drawings. Generally you  will
  1723.   use SCreen 1 or SCreen 2 as the main draw-
  1724.   ing screen. You must be  in  SCreen  1  to
  1725.   access the pages. The other main screen is
  1726.   generally used as a temporary workspace or
  1727.   for holding symbols, shapes, patterns that
  1728.   you need to access quickly and repeatedly.
  1729.   If  you  are using layers SCreen 2 becomes
  1730.   the visual  layer  and  SCreen  1  is  the
  1731.   active  layer.  Figure 7-1 shows a picture
  1732.   being worked on while in SCreen 1 PaGe 00.
  1733.  
  1734.   SCreen 3 is called F7 and  it  shows  that
  1735.   last object copied, erased, animated, etc.
  1736.   Most of the drawing functions can be  used
  1737.   in  F7,  although  some may behave differ-
  1738.   ently. F7 is an ideal  screen  to  use  to
  1739.   modify  something  that  was  just  copied
  1740.   before placing  it  on  the  drawing.  For
  1741.   example  to  change  the  color  of a FONT
  1742.   before placing  it  on  one  of  the  main
  1743.   screens.  <F8  o>ld,  <F8 O>ld sequential,
  1744.   and <F8 s>ave work differently  in  SCreen
  1745.   F7.  Instead  of manipulating full screens
  1746.   the partial  screens  normally  associated
  1747.   with  the  F7  key are retrieved or saved.
  1748.   This makes <F8  O>ld  sequential  particu-
  1749.   larly  useful  since  it  lets  you browse
  1750.   through the partial screens  as  you  nor-
  1751.   mally would with the full screens.
  1752.  
  1753.   The  final screen is very limited and con-
  1754.   tains the 25th line of the main screens.
  1755.  
  1756.   Screens are different from pages  in  sev-
  1757.   eral  important ways, but perhaps the most
  1758.   significant  is  where  they  are  stored.
  1759.   Screens  are  stored  within  the 192K the
  1760.   program uses, while pages, other then  the
  1761.   current  page, are stored on the workspace
  1762.   disk. For fast access use a RAM disk.
  1763.  
  1764.   PAGES & LAYERS 7-2
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.      Pages can be used when you want to  create
  1788.      a  picture that is larger than can be rea-
  1789.      sonably accommodated on a  single  screen.
  1790.      This might be a large flow chart, mechani-
  1791.      cal drawing, or just a big painting. Basi-
  1792.      cally  the  pages  are  arranged on an 8X8
  1793.      grid although they can be used as 64  ver-
  1794.      tical  pages if desired. It is possible to
  1795.      scroll by 1/2 page either horizontally  or
  1796.      vertically.  To  use  pages you must be in
  1797.      SCreen  1.  Portions  of  a  page  can  be
  1798.      readily  transferred  between  other pages
  1799.      using the <F7 c>opy function.  Pages  must
  1800.      be saved separately to disk. While in page
  1801.      mode the cursor line will  show  SC1  PG00
  1802.      when in SCreen 1 & PaGe 00.
  1803.  
  1804.      To  scroll  from  one  page to another use
  1805.      <Ctrl-Home> to  display  current  position
  1806.      and  then  use  the  arrow  cursor keys to
  1807.      scroll/pan in the direction of  the  arrow
  1808.      by  one  half screen. Use <PgUp> or <PgDn>
  1809.      to move a full  page  at  a  time.  <Home>
  1810.      returns you to PaGe 00 and <End> takes you
  1811.      to the maximum page that has been created.
  1812.      When scrolling the current screen is saved
  1813.      to the workspace  disk,  if  anything  has
  1814.      been  added,  and the disk is searched for
  1815.      the existence of the page you  are  moving
  1816.      to.  If the page was previously created it
  1817.      is shown, otherwise a blank page is shown.
  1818.      Selecting  <Ctrl-Home> twice displays PaGe
  1819.      00 without saving the page  you  are  cur-
  1820.      rently on. This is how multiple pages pre-
  1821.      viously created are restored.
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.  
  1830.                              PAGES & LAYERS 7-3
  1831.  
  1832.  
  1833.  
  1834.  
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840.  
  1841.  
  1842.  
  1843.  
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.  
  1853.   Version 3.50 has added the ability to show
  1854.   a map of the  pages  by  selecting  <Ctrl-
  1855.   Home>  followed  by  <?>,  <h>, or <H> for
  1856.   help. With the map  displayed  the  cursor
  1857.   will  move the active screen window around
  1858.   on  the  virtual  page  until  <ENTER>  is
  1859.   selected  to select the desired portion of
  1860.   the page to work on. Figure 7-2 shows  how
  1861.   the map looks while working in medium res-
  1862.   olution.
  1863.  
  1864.       [pagemap]
  1865.  
  1866.  
  1867.  
  1868.  
  1869.  
  1870.  
  1871.  
  1872.  
  1873.  
  1874.  
  1875.  
  1876.  
  1877.   Figure 7-2 PAGE map of pages. The  current
  1878.   active  page  is PaGe 11.  Use cursor keys
  1879.   to  move  around  and  then  select   with
  1880.   <ENTER>.
  1881.  
  1882.  
  1883.   The ability to use multiple screens allows
  1884.   some very detailed printed output on laser
  1885.   printers.  Consider  drawing  on just four
  1886.   pages then printing them out side by  side
  1887.   on a laser printer for a 1280X800 dot res-
  1888.   olution picture from a  standard  graphics
  1889.   card.
  1890.  
  1891.  
  1892.  
  1893.  
  1894.  
  1895.  
  1896.   PAGES & LAYERS 7-4
  1897.  
  1898.  
  1899.  
  1900.  
  1901.  
  1902.  
  1903.  
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.      Layers  or  overlays are very powerful and
  1920.      useful. Think of them as drawing  on  sev-
  1921.      eral  layers  of  clear  plastic. Only the
  1922.      active layer is effected  by  the  various
  1923.      functions.  The other layers can be visual
  1924.      as desired. To use layers you must  be  in
  1925.      SCreen  1,  as  it  is  the active screen.
  1926.      SCreen 2 becomes  the  visual  screen  and
  1927.      holds   copies  of  all  layers  that  are
  1928.      visual.  To  use  correctly,  start   with
  1929.      SCreen  2 being clear. Draw the first por-
  1930.      tion of the graphic on SCreen 1  and  then
  1931.      declare a layer with <Ctrl-l>. This trans-
  1932.      fers SCreen 1 to SCreen  2,  saves  it  to
  1933.      disk  and  clears  SCreen 1. With SCreen 2
  1934.      now being overlaid with SCreen 1 the draw-
  1935.      ing will initially look the same. Continue
  1936.      drawing and  as  appropriate  declare  the
  1937.      next  layer and so on. There are many uses
  1938.      of layers and many ways that they  can  be
  1939.      used.  Proper  use  of  layers can greatly
  1940.      speed the creation of complex drawings. As
  1941.      with  pages, if you want to save the vari-
  1942.      ous layers you must do so separately. When
  1943.      layers  are activated the prompt line will
  1944.      show SC1L0* when in SCreen 1 and Layer  0.
  1945.      The  *  indicates that not only are layers
  1946.      active, but that the visual layer is  cur-
  1947.      rently  being  shown along with the active
  1948.      layer. If the prompt line reads  SC1L3  it
  1949.      means  that  you  are in SCreen 1, Layer 3
  1950.      and only the active layer is being shown.
  1951.  
  1952.      A simpler way of using the  layer  feature
  1953.      is to load a pattern screen into SCreen 2.
  1954.      For example a screen  containing  perspec-
  1955.      tive lines might be put in SCreen 2 as the
  1956.      visual layer. Switch to SCreen 1 and acti-
  1957.      vate  layer  with an <l>, causing the per-
  1958.      spective screen to be shown aiding in cre-
  1959.      ation of a perspective drawing.
  1960.  
  1961.  
  1962.                              PAGES & LAYERS 7-5
  1963.  
  1964.  
  1965.  
  1966.  
  1967.  
  1968.  
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.  
  1985.   Another use for layers is to load  a  com-
  1986.   plex  object  as  the visual layer and use
  1987.   the active layer to trace the visual layer
  1988.   and save it in a vector format.
  1989.  
  1990.   Saving  Pages/Layers:  As noted the layers
  1991.   and pages must be  saved  separately  from
  1992.   within the program. An alternate method of
  1993.   saving layers/pages  can  be  accomplished
  1994.   from  DOS.  After  completing  the various
  1995.   pages exit the  program  to  DOS.  If  the
  1996.   workspace  drive  is the same as the drive
  1997.   you save drawings on, then use the follow-
  1998.   ing command in DOS, after switching to the
  1999.   workspace drive:
  2000.  
  2001.       REN PAGE.* FILE.*
  2002.  
  2003.   where FILE is the name that you  want  the
  2004.   file  to  have.  To  recall  the file at a
  2005.   later date you must  first  rename  it  as
  2006.   follows:
  2007.  
  2008.       REN FILE.* PAGE.*
  2009.  
  2010.   Run  the  program  and  select <Ctrl-Home>
  2011.   twice to restore the first page.
  2012.  
  2013.   If you use a RAM disk for a workspace then
  2014.   a  slightly  different procedure is needed
  2015.   to save the drawings from DOS. Instead  of
  2016.   RENaming   the  files  COPY  them  to  the
  2017.   desired disk (X:) as follows:
  2018.  
  2019.       COPY PAGE.* X:FILE.*
  2020.  
  2021.   And to retrieve the files use:
  2022.  
  2023.       COPY X:FILE.* PAGE.*
  2024.  
  2025.   Enter the program and retrieve  the  files
  2026.   using <Ctrl-Home> twice.
  2027.  
  2028.   PAGES & LAYERS 7-6
  2029.  
  2030.  
  2031.  
  2032.  
  2033.  
  2034.  
  2035.  
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051.      Compressed  Saves:  A  modification of the
  2052.      above technique can be used  to  not  only
  2053.      save  the pages or layers, but to compress
  2054.      them and combine them into a single  file.
  2055.      Several  programs  are  available  such as
  2056.      ARC, LUE/LUU, and PKARC that can  compress
  2057.      and  library  files.  At  the time of this
  2058.      writing PKARC may be the best  all  around
  2059.      choice   for  archiving  your  files.  The
  2060.      graphics screens can be significantly com-
  2061.      pressed  and  by  combining  them into one
  2062.      file they can more easily  be  kept  track
  2063.      of. Which library program you use is up to
  2064.      you, but a faster one has  some  advantage
  2065.      over an more efficient one. By writing the
  2066.      appropriate macro-batch  file  combination
  2067.      the  entire  operation  can be operated to
  2068.      the point where the user has little knowl-
  2069.      edge of what actually takes place.
  2070.  
  2071.  
  2072.                      !REMEMBER!
  2073.  
  2074.      <F8  s>ave  will  save only the screen you
  2075.      are in and not the pages and layers. Refer
  2076.      to the previous discussion for information
  2077.      on how to save pages and layers.  KD-LASER
  2078.      will use the PAGE.* files to print from.
  2079.  
  2080.  
  2081.  
  2082.  
  2083.  
  2084.  
  2085.  
  2086.  
  2087.  
  2088.  
  2089.  
  2090.  
  2091.  
  2092.  
  2093.  
  2094.                              PAGES & LAYERS 7-7
  2095.  
  2096.  
  2097.  
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.      ──────────────────────────────────────────
  2118.  
  2119.      8 - LIBRARIES
  2120.      ──────────────────────────────────────────
  2121.  
  2122.      PC-KEY-DRAW provides 6 methods  of  saving
  2123.      libraries   of   commonly  used  pictures,
  2124.      screens, fonts, vectors, macros, and  pat-
  2125.      terns.  Line drawings can be saved as vec-
  2126.      tors for later recall  at  any  angle  and
  2127.      scale using F6. Portions of the screen can
  2128.      be saved as  bitmapped  images  under  F7.
  2129.      Fonts  can be created and then saved using
  2130.      F7, as can patterns.  Entire  screens  are
  2131.      saved  with  F8,  while  key macros can be
  2132.      created for a wide variety  of  uses.  PC-
  2133.      KEY-DRAW  can  also save files as a BASICA
  2134.      subroutine.
  2135.  
  2136.      Vector  Saves  are  ideal   for   creating
  2137.      objects  that need to be retrieved at dif-
  2138.      ferent angles  and  sizes.  Possible  uses
  2139.      include    electrical   schematics,   flow
  2140.      charts, architectural  symbols  and  more.
  2141.      Each  element  is saved with its own name,
  2142.      providing easy recall of the  elements  by
  2143.      name.  Artists  could  use  this to create
  2144.      special  brush  patterns/shapes  to  paint
  2145.      with.  VCT  is the default extension. Cur-
  2146.      rently the only objects that can be  saved
  2147.      as vectors are those created entirely from
  2148.      lines,  dots,  parallel  lines,  or  spoke
  2149.      lines. On ending the line drawing with <F6
  2150.      E>nd the vector can be named and saved  to
  2151.      disk for later use. A vector file contains
  2152.      the x and  y  coordinates  of  the  object
  2153.      along  with  color  and width information.
  2154.      Previously created  vector  files  can  be
  2155.      loaded  with <F6 o>ld. The scale factor is
  2156.      matched to  that  of  the  drawing  unless
  2157.      forced  to  something  else.  The rotation
  2158.      angle can also be set.
  2159.  
  2160.                                   LIBRARIES 8-1
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.  
  2183.   Picture   Saves   are   used  for  complex
  2184.   objects. They are ideal for animation  and
  2185.   a  whole  lot  more.  One use is to create
  2186.   small  patterns  to  use  as  brushes  for
  2187.   painting with, but a more common use is to
  2188.   save parts of the screen for use in  other
  2189.   drawings. <F7 C>opy & save is used to copy
  2190.   an area from the screen  and  save  it  to
  2191.   disk.  PICtures  are  ideal for animation.
  2192.   PIC is the default extension. A FIG exten-
  2193.   sion can be specified which results in the
  2194.   file being saved as a series of ASCII num-
  2195.   bers.  The files can be retrieved with <F7
  2196.   o>ld or <F7 O>ld & place. <F7 o>ld  brings
  2197.   the  file  in  to  animate,  while  <F7 O>
  2198.   places it directly on the screen. To  view
  2199.   all  of the PIC files on the drawing disk,
  2200.   move to SCreen F7, select  <F8  O>ld,  and
  2201.   the files will be brought in one at a time
  2202.   and displayed in the upper left corner  of
  2203.   the screen.
  2204.  
  2205.   Font  Saves  provide  a  method  of saving
  2206.   small commonly used portions of a  screen,
  2207.   such as text, but not limited to text. The
  2208.   portions of the screen are  created  indi-
  2209.   vidually  and  saved  under a common file.
  2210.   They are retrieved with <F6  Alt-t>  based
  2211.   on  the  letter  assigned  to each picture
  2212.   when saved. FNT is the default  extension.
  2213.   To save a character use <F7 C>opy and name
  2214.   the file with an FNT extension.  You  will
  2215.   be  prompted for the character that corre-
  2216.   sponds to the one just copied.  To  ensure
  2217.   that  the  characters  line up properly be
  2218.   sure to be consistent with the location of
  2219.   the  top  of  the character. To modify the
  2220.   default letter  and  word  spacing  select
  2221.   <Space  Bar> when prompted for the charac-
  2222.   ter and enter the desired size in  pixels.
  2223.   TYPEMAKE.MCR  (on Library Disk #3) creates
  2224.   an unusual looking text font from the pri-
  2225.  
  2226.   LIBRARIES 8-2
  2227.  
  2228.  
  2229.  
  2230.  
  2231.  
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.  
  2241.  
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.  
  2249.      mary  text  fonts.  The  created  font  is
  2250.      readily available as KD-FONT3.FNT, but  it
  2251.      is  interesting to watch as it is created.
  2252.      Directions for TYPEMAKE.MCR are  contained
  2253.      in the file.
  2254.  
  2255.      Screen  Saves  can be used as a library by
  2256.      saving multiple pictures on one screen and
  2257.      then  recalled  using template of F8. This
  2258.      lets  you  group  commonly  used  pictures
  2259.      under  one  name and uses them as desired.
  2260.      Generally saving complete screens will  be
  2261.      the most commonly used storage method. SCN
  2262.      is the default extension. SCN files can be
  2263.      view  sequentially  for either SCreen 1 or
  2264.      SCreen 2 by selecting <F8 O>ld.
  2265.  
  2266.      Pattern Saves are in the same basic format
  2267.      as PICture saves, only arranged as 40 X 23
  2268.      blocks for  retrieval  using  the  pattern
  2269.      fill function of F5. Actually any PIC file
  2270.      can be used as  a  pattern  file.  Pattern
  2271.      files  can  be used for simple painting or
  2272.      definitive patterns used for  architecture
  2273.      or  cartography can be created. 64 differ-
  2274.      ent patterns can be  saved  in  one  file.
  2275.      The  <F1  Ctrl-z> screen size is identical
  2276.      to the pattern size. PIC  is  the  default
  2277.      extension.  PATMAKE.MCR  (on  Library Disk
  2278.      #2) will create  a  blank  pattern  screen
  2279.      with  a  grid  of  64  blocks  that can be
  2280.      replaced with the patterns you are  creat-
  2281.      ing.
  2282.  
  2283.      Macro Saves have many, many uses. See sec-
  2284.      tion on KEY MACRO for details as to  macro
  2285.      use. MCR is the default extension.
  2286.  
  2287.  
  2288.  
  2289.  
  2290.  
  2291.  
  2292.                                   LIBRARIES 8-3
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299.  
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314.  
  2315.   BASICA Saves are accomplished in much  the
  2316.   same  way  as  PICture  or  pattern  saves
  2317.   using <F7  C>,  except  that  when  a  BAS
  2318.   extension  is  added  to the file name the
  2319.   file is saved as a subroutine that can  be
  2320.   merged  into a BASICA program that you are
  2321.   writing. The file will always start a line
  2322.   number  20000 so you will have to RENUMber
  2323.   before merging several together. The  sub-
  2324.   routine  created  can  be  called and will
  2325.   load an array with the data  so  that  the
  2326.   array  can  be put on the screen using the
  2327.   PUT command of basic. This  is  ideal  for
  2328.   writing games or for writing programs with
  2329.   graphical interfaces. PUT is an ideal  way
  2330.   to  get  simple animation in a BASICA pro-
  2331.   gram. Any of  the  files  on  the  library
  2332.   disks  can  be  turned  into BASIC subrou-
  2333.   tines. See your BASICA manual  for  detail
  2334.   information  on  merging BASICA files, and
  2335.   using graphic commands, like PUT and GET.
  2336.  
  2337.   Creating Libraries: While  PC-KEY-DRAW  is
  2338.   ideal for creating libraries, it currently
  2339.   comes with a limited supply of  libraries.
  2340.   I  have  created many libraries for my own
  2341.   use, but they include things that would be
  2342.   of  little use to anyone else. Most of the
  2343.   libraries I have created relate to  motion
  2344.   compensated  cranes  and  there just isn't
  2345.   much call for such symbols. At the time of
  2346.   this  writing PC-KEY-DRAW includes twenty-
  2347.   six font libraries, seven pattern  librar-
  2348.   ies, and a number of macro libraries. I do
  2349.   not have the time or the talent to  create
  2350.   general purpose libraries, but some of you
  2351.   might. Please send any libraries that  you
  2352.   create  to me for evaluation. Unregistered
  2353.   users can receive credit towards register-
  2354.   ing,  while  registered  users can receive
  2355.   credit towards updates or CA$H back.  Yep,
  2356.   I  am willing to pay for good libraries in
  2357.  
  2358.   LIBRARIES 8-4
  2359.  
  2360.  
  2361.  
  2362.  
  2363.  
  2364.  
  2365.  
  2366.  
  2367.  
  2368.  
  2369.  
  2370.  
  2371.  
  2372.  
  2373.  
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.  
  2380.  
  2381.      any of  PC-KEY-DRAW's  formats,  including
  2382.      printer  configuration.  The  actual price
  2383.      will depend on the type, quality, and gen-
  2384.      eral  use  of the library. Please indicate
  2385.      what you think the library is worth.
  2386.  
  2387.      I reserve the right to withdraw this offer
  2388.      at  any time. Please send original librar-
  2389.      ies only and not copies of  other  program
  2390.      libraries.
  2391.  
  2392.      Library  Disks:  Several library disks are
  2393.      supplied  with  PC-KEY-DRAW.  The  library
  2394.      disks  contain  numerous  files saved with
  2395.      many  of  the  possible  save   techniques
  2396.      offered   by  PC-KEY-DRAW.  Library  files
  2397.      available   include   macros,    pictures,
  2398.      screens, fonts and patterns.
  2399.  
  2400.  
  2401.  
  2402.  
  2403.  
  2404.  
  2405.  
  2406.  
  2407.  
  2408.  
  2409.  
  2410.  
  2411.  
  2412.  
  2413.  
  2414.  
  2415.  
  2416.  
  2417.  
  2418.  
  2419.  
  2420.  
  2421.  
  2422.  
  2423.  
  2424.                                   LIBRARIES 8-5
  2425.  
  2426.  
  2427.  
  2428.  
  2429.  
  2430.  
  2431.  
  2432.  
  2433.  
  2434.  
  2435.  
  2436.  
  2437.  
  2438.  
  2439.  
  2440.  
  2441.  
  2442.  
  2443.  
  2444.  
  2445.  
  2446.  
  2447.      ──────────────────────────────────────────
  2448.  
  2449.      5 - PRINTING
  2450.      ──────────────────────────────────────────
  2451.  
  2452.      PC-KEY-DRAW currently provides three meth-
  2453.      ods  of  printing  graphics.  The  primary
  2454.      method a graphics printing is to perform a
  2455.      screen  dump  to a dot matrix printer that
  2456.      is Epson or IBM graphics  compatible.  The
  2457.      second  method is the zoom printing method
  2458.      which can be set up to  work  with  almost
  2459.      any  printer. See Appendix B: for informa-
  2460.      tion on configuring the program  for  your
  2461.      printer.  For those with an HP LaserJet or
  2462.      compatible a third printing method is pro-
  2463.      vided. Alternately, the user can use third
  2464.      party programs to  print  their  graphics.
  2465.      This  manual was printed with the aid of a
  2466.      commercial program called INSET.
  2467.  
  2468.      Screen Dump: The most common way to  print
  2469.      a  graphic  screen  is the use of a simple
  2470.      screen  dump.  The  key  to  performing  a
  2471.      screen  dump is the use of the DOS program
  2472.      GRAPHICS.COM that comes with all  versions
  2473.      of DOS. Run GRAPHICS as part of your AUTO-
  2474.      EXEC.BAT, as part of KD.BAT,  or  directly
  2475.      from  DOS. Depending on the version of DOS
  2476.      you are using, when GRAPHICS is run a mes-
  2477.      sage  may  or  may  not appear telling you
  2478.      that GRAPHICS is loaded.
  2479.  
  2480.      Most users should be  aware  that  hitting
  2481.      <Shft-PrtSc>  while  in a text screen will
  2482.      dump  a  copy  of  the  screen  to   their
  2483.      printer.  GRAPHICS.COM  extends this capa-
  2484.      bility to the graphics modes of  your  IBM
  2485.      PC.  While  in  PC-KEY-DRAW hitting <Shft-
  2486.      PrtSc> with GRAPHICS loaded  will  dump  a
  2487.      copy of the screen to the printer. This is
  2488.      a complete copy of  the  screen  including
  2489.  
  2490.                                    PRINTING 9-1
  2491.  
  2492.  
  2493.  
  2494.  
  2495.  
  2496.  
  2497.  
  2498.  
  2499.  
  2500.  
  2501.  
  2502.  
  2503.  
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512.  
  2513.   the cursor, help  menu,  grid  and  prompt
  2514.   line.  Generally, it is desirable to print
  2515.   the picture and only the  picture.  <s>how
  2516.   can  be  used  to show only the picture on
  2517.   the screen, thus when  a  screen  dump  is
  2518.   invoked  the  print  out will contain only
  2519.   the desired information. PC-KEY-DRAW  pro-
  2520.   vides  a  more  direct  way of printing by
  2521.   selecting <F8 p>rint, which will allow you
  2522.   to change the 25th line and then print the
  2523.   picture and the picture only.  Essentially
  2524.   <F8 p> invokes a <Shft-PrtSc> so you don't
  2525.   have to.
  2526.  
  2527.   If the drawing covers more than  a  single
  2528.   screen,   each  screen  will  have  to  be
  2529.   printed individually and then put together
  2530.   manually.  A  reducing copy machine can be
  2531.   used to provide  single  sheet  size  from
  2532.   multiple  pages. Some users report success
  2533.   in  transferring  the  multiple  pages  to
  2534.   blueprints for use in architect and lands-
  2535.   cape design.
  2536.  
  2537.   A  screen  dump  will  behave  differently
  2538.   depending on the video mode the program is
  2539.   in. To print the screen  sideways  on  the
  2540.   paper, perform printing from the high res-
  2541.   olution mode. To print the  screen  across
  2542.   the  top  of  the  paper, perform printing
  2543.   from the medium resolution mode.
  2544.  
  2545.   GRAPHICS.COM from your DOS disk is not the
  2546.   only  screen dump program that can be used
  2547.   with PC-KEY-DRAW. Some printers come  with
  2548.   their own drivers, for example the Okidata
  2549.   color printer includes a screen dump  rou-
  2550.   tine   that  lets  you  print  PC-KEY-DRAW
  2551.   images  in  full  color.  There  are  also
  2552.   screen  dump programs in the public domain
  2553.   and  a  number  of   commercial   programs
  2554.   designed to replace GRAPHICS.COM.
  2555.  
  2556.   PRINTING 9-2
  2557.  
  2558.  
  2559.  
  2560.  
  2561.  
  2562.  
  2563.  
  2564.  
  2565.  
  2566.  
  2567.  
  2568.  
  2569.  
  2570.  
  2571.  
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.  
  2579.      Zoom  Printing: Banners and posters can be
  2580.      created on a dot matrix printer or even  a
  2581.      daisy  wheel printer using the zoom print-
  2582.      ing functions of  PC-KEY-DRAW.  There  are
  2583.      many  programs  design  to  print banners,
  2584.      but PC-KEY-DRAW is the only  one  designed
  2585.      to  print  posters.  The zoom printer uses
  2586.      text characters on the printer  to  repre-
  2587.      sent  the  colors  on  the screen, thus in
  2588.      medium  resolution  four  different   text
  2589.      characters  are used in printing, while in
  2590.      high resolution only  two  characters  are
  2591.      needed.  The  entire screen can be printed
  2592.      using <F8 P> or  just  a  portion  of  the
  2593.      screen  with  <F8  Ctrl-p>.  The user must
  2594.      specify the characters to use and the size
  2595.      of  the print out. Size 1 is the smallest,
  2596.      printing a single character at 15+CPI  for
  2597.      each  dot in the image to be printed. Size
  2598.      2 prints a single character at 12 CPI  for
  2599.      each dot. Size 3 uses 10 CPI to print each
  2600.      character.
  2601.  
  2602.      The higher numbers in zoom  printing  pro-
  2603.      vide  multiples  of the lower numbers. See
  2604.      Chapter 4 for a zoom printer sizing chart.
  2605.      A  number of zoom printer drivers are sup-
  2606.      plied on the program disk and  PC-KEY-DRAW
  2607.      provides the capability to create your own
  2608.      drivers for printers  not  supported.  See
  2609.      Appendix B: for configuration information.
  2610.  
  2611.  
  2612.  
  2613.  
  2614.  
  2615.  
  2616.  
  2617.  
  2618.  
  2619.  
  2620.  
  2621.  
  2622.                                    PRINTING 9-3
  2623.  
  2624.  
  2625.  
  2626.  
  2627.  
  2628.  
  2629.  
  2630.  
  2631.  
  2632.  
  2633.  
  2634.  
  2635.  
  2636.  
  2637.  
  2638.  
  2639.  
  2640.  
  2641.  
  2642.  
  2643.  
  2644.  
  2645.   LaserJet  Printing:  The   most   advanced
  2646.   printing   capability  of  PC-KEY-DRAW  is
  2647.   available  for  the  HP  LaserJet  or  any
  2648.   printer  that  emulates  the LaserJet. KD-
  2649.   LASER.EXE can be  use  to  print  multiple
  2650.   pages   or  to  combine  separate  screens
  2651.   together as one. KD-LASER allows the  user
  2652.   to specify the resolution to use, the por-
  2653.   tion of the screen to  print,  and  allows
  2654.   inverting  the  video.  To  print multiple
  2655.   pages created in the virtual page mode  of
  2656.   PC-KEY-DRAW  simply  specify the workspace
  2657.   drive where  the  PAGE  files  reside  and
  2658.   enter  PAGE  as  the name of the file. PC-
  2659.   KEY-DRAW's brochure was  created  in  this
  2660.   fashion.  Future  versions  of the program
  2661.   will expand the features  of  KD-LASER  to
  2662.   most dot matrix printers.
  2663.  
  2664.   Alternate  Printing: PC-KEY-DRAW can be an
  2665.   ideal tool for  creating  graphics  to  be
  2666.   printed  with other programs. The pictures
  2667.   in this manual were all created  with  PC-
  2668.   KEY-DRAW,  but  were  printed  with INSET.
  2669.   INSET allows graphics  to  be  mixed  with
  2670.   text  from  a  standard word processor. It
  2671.   sits in the background and allows graphics
  2672.   to  be  positioned and sized on the screen
  2673.   with the text while editing. It then takes
  2674.   over  when  printing  and inserts the pic-
  2675.   tures in text.
  2676.  
  2677.   Pictures created with PC-KEY-DRAW can also
  2678.   be  used  with  various desktop publishing
  2679.   programs, such as Ventura Publisher.  Cur-
  2680.   rently  the  screens must be captured with
  2681.   GEMCAP or translated with one of a  number
  2682.   of image file format translators available
  2683.   in  the  public  domain  or  commercially.
  2684.   Future  versions  of PC-KEY-DRAW will pro-
  2685.   vide direct read and write of IMG files.
  2686.  
  2687.  
  2688.   PRINTING 9-4
  2689.  
  2690.  
  2691.  
  2692.  
  2693.  
  2694.  
  2695.  
  2696.  
  2697.  
  2698.  
  2699.  
  2700.  
  2701.  
  2702.  
  2703.  
  2704.  
  2705.  
  2706.  
  2707.