home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p068 / 1.img / FILE01 / SLIDE.DOC < prev    next >
Encoding:
Text File  |  1990-09-14  |  7.9 KB  |  260 lines

  1.  
  2.                       The SLIDE program   v3.5  5/22/89 
  3.  
  4. Overview
  5.  
  6.    The SLIDE program displays slide files created with the CADKEY ALT-F
  7.    command (Sn.sld files). Additionally, other graphics commands are
  8.    available. All commands are processed in batch mode through a 
  9.    command file, which is specified as an argument when SLIDE is run.
  10.  
  11. Installing SLIDE
  12.  
  13.    To install the SLIDE program, copy the SLIDE.EXE file from the UTILITIES
  14.    diskette into the directory where your CADKEY v3.5 program resides.
  15.    The SLIDE program uses the CADKEY v3.5 CONFIG.DAT file to determine 
  16.    which graphics device is being used and uses the same resident graphics
  17.    device driver used by the CADKEY resident driver version. Don't forget
  18.    that all slide files used with the SLIDE program must have been created
  19.    by either CADKEY or SLIDE on the same graphics device that is being used
  20.    for their display.
  21.  
  22.    Support for the HALO graphics drivers are provided by using
  23.    SLIDEH.exe
  24.  
  25. 3.5 Upgrade Notes:
  26.  
  27.    Some changes were made in this version of the SLIDE program. They are:
  28.  
  29.       1) SLIDE 3.02 command files are not compatible with 3.5 slide. HALO
  30.          3.02 slide file are not compatible with this version.
  31.  
  32. Using SLIDE
  33.  
  34.    The command sequence for invoking SLIDE is:
  35.  
  36.       SLIDE name
  37.  
  38.          where:
  39.  
  40.             name = file name (including pathname) of the command file
  41.                    to be processed
  42.  
  43.    The SLIDE program may be exited at any time by pressing the ESC key.
  44.  
  45.    The following commands are supported by the SLIDE program and may be
  46.    used in the command file:
  47.  
  48.       BOX - draw a box in the current active graphics window
  49.  
  50.          format:
  51.  
  52.             BOX color x1 y1 x2 y2
  53.  
  54.                color = color number between 0 and 255 to draw box in
  55.               x1 = x min value of box, as a real number between 0 and 1,
  56.                    where 0 is far left of window
  57.               y1 = y min value of box, as a real number between 0 and 1,
  58.                    where 0 is bottom of window
  59.               x2 = x max value of box, as a real number between 0 and 1,
  60.                    where 0 is far right of window
  61.               y2 = y max value of box, as a real number between 0 and 1,
  62.                    where 0 is top of window
  63.  
  64.  
  65.       CHAIN - close the current command file and execute another specified
  66.               command file
  67.  
  68.          format:
  69.  
  70.             CHAIN name
  71.  
  72.                name = file name (including pathname) of the command file 
  73.                       to be executed
  74.  
  75.  
  76.       CLEAR - clear the screen 
  77.  
  78.          format:
  79.  
  80.             CLEAR color
  81.  
  82.                color = color number between 0 and 255 to clear the screen with
  83.  
  84.  
  85.       FILLBOX - draw a filled box in the current active graphics window
  86.  
  87.          format:
  88.  
  89.             FILLBOX color x1 y1 x2 y2
  90.  
  91.                color = color number between 0 and 255 to fill box with
  92.               x1 = x min value of box, as a real number between 0 and 1,
  93.                    where 0 is far left of window
  94.               y1 = y min value of box, as a real number between 0 and 1,
  95.                    where 0 is bottom of window
  96.               x2 = x max value of box, as a real number between 0 and 1,
  97.                    where 1 is far right of window
  98.               y2 = y max value of box, as a real number between 0 and 1,
  99.                    where 1 is top of window
  100.  
  101.  
  102.       GOSUB - execute another command file, and return
  103.               processing to current command file after new command
  104.               file complete.  Limited to one level of gosub from main
  105.           command file.
  106.  
  107.          format:
  108.  
  109.             GOSUB name
  110.  
  111.                name = file name (including pathname) of the command file 
  112.                       to be executed
  113.  
  114.  
  115.       PAUSE - pause (halt) program operation until a key is hit
  116.  
  117.          format:
  118.  
  119.             PAUSE
  120.  
  121.  
  122.       REM - remark line in a slide file.
  123.  
  124.          format:
  125.  
  126.             REM
  127.  
  128.       REPEAT - repeat the commands in the current command file from the    
  129.                beginning of the file
  130.  
  131.          format:
  132.  
  133.             REPEAT
  134.  
  135.       SLIDE - retrieve and display a slide file  
  136.  
  137.          format:
  138.  
  139.             SLIDE name
  140.  
  141.                name = file name (including pathname) of the slide file 
  142.  
  143.  
  144.       SAVESLIDE - save the current screen as a slide file  
  145.  
  146.          format:
  147.  
  148.             SAVESLIDE name
  149.  
  150.                name = file name (including pathname) for the slide file 
  151.  
  152.  
  153.  
  154.       SETPAL - set a single color in the graphics palette
  155.  
  156.          format:
  157.  
  158.         SETPAL palnum red green blue
  159.  
  160.            sred = red value (real number between 0.0 and 1.0)
  161.            sgreen = green value (real number between 0.0 and 1.0)
  162.            sblue = blue value (real number between 0.0 and 1.0)
  163.  
  164.  
  165.       SETRANGE - set a range of colors in the graphics palette
  166.  
  167.          format:
  168.  
  169.             SETRANGE spal npal sred sgreen sblue ered egreen eblue
  170.  
  171.                spal = starting palette index in range to set (0-255)
  172.                npal = number of colors to set in the palette
  173.            sred = starting red value (real number between 0.0 and 1.0)
  174.                   in range to set
  175.            sgreen = starting green value (real number between 0.0 and 1.0)
  176.                     in range to set
  177.            sblue = starting blue value (real number between 0.0 and 1.0)
  178.                    in range to set
  179.            ered = ending red value (real number between 0.0 and 1.0)
  180.                   in range to set
  181.            egreen = ending green value (real number between 0.0 and 1.0)
  182.                     in range to set
  183.            eblue = ending blue value (real number between 0.0 and 1.0)
  184.                    in range to set
  185.  
  186.  
  187.       TEXT - draw a text string in a current active text window
  188.  
  189.          format:
  190.  
  191.             TEXT  wnum row col string
  192.  
  193.               wnum = text window number (1-7) of a previously
  194.                            opened text window.
  195.           row = row of the text window to position first
  196.                         character of the string.  Rows are 0 relative 
  197.             from the top of the text wind
  198.           col = column of the text window to position first
  199.                         character of the string.  Cols are 0 relative 
  200.             from the left of the text wind
  201.  
  202.       TEXTWIN_CLEAR - clears the contents of a text window.
  203.  
  204.          format:
  205.  
  206.             TEXTWIN_CLEAR  wnum
  207.  
  208.               wnum = text window number (1-7) of a current active
  209.                          text window.
  210.  
  211.  
  212.       TEXTWIN_CLOSE - close and clears a text window.
  213.  
  214.          format:
  215.  
  216.             TEXTWIN_CLOSE  wnum
  217.  
  218.               wnum = text window number (1-7) of a current active
  219.                          text window.
  220.  
  221.           Note: After a text window is closed, the wnum can
  222.                         be reused to open another text window.
  223.  
  224.       TEXTWIN_OPEN - opens a text window
  225.  
  226.          format:
  227.  
  228.             TEXTWIN_OPEN  wnum rows cols txfcol txbcol bord bdcol xbase ybase
  229.               xa ya 
  230.  
  231.               wnum = text window number (1-7) of a non-active
  232.                          text window.
  233.           rows = number of character rows for window.
  234.           cols = number of character cols for widow.
  235.           txfcol = text foreground color (0-15)
  236.           txbcol = text background color (0-15)
  237.           bord = border option (0=none 1=single 2=double)
  238.           bdcol = border color (0-15)
  239.           xbase = position to place text window
  240.                   using a real number from 0.0-1.0
  241.           ybase = position to place text window
  242.                   using a real number from 0.0-1.0
  243.           xa = x alignment option (-1=left 0=center 1=right)
  244.                This specifies the relative alignment of xbase
  245.           ya = y alignment option -1=bottom 0=center 1=top
  246.                This specifies the relative alignment of ybase
  247.  
  248.           Note: The size of the text is calculated using the 
  249.                 grtxtrows varible in the configuration file.
  250.  
  251.  
  252.  
  253.       WAIT - wait (suspend) program operation for a specified time
  254.  
  255.          format:
  256.  
  257.             WAIT nsec
  258.  
  259.                nsec = number of seconds to wait
  260.