home *** CD-ROM | disk | FTP | other *** search
-
- The SLIDE 386 program v5.0 03/26/92
-
- Overview
-
- The SLIDE 386 program displays slide files created with the CADKEY ALT-F
- command (Sn.sld files). Additionally, other graphics commands are
- available. All commands are processed in batch mode through a
- command file, which is specified as an argument when SLIDE is run.
-
- Installing SLIDE 386
-
- The SLIDE 386 program is automatically installed into the directory where
- your CADKEY v5.0 program resides. The SLIDE 386 program uses the CADKEY
- v5.0 CONFIG.DAT file to determine which graphics device is being used
- and uses the same resident graphics device driver used by the CADKEY
- resident driver version. Don't forget that all slide files used with the
- SLIDE 386 program must have been created by either CADKEY v5.0 or SLIDE
- 386 on the same graphics device that is being used for their display.
-
- 5.0 Upgrade Notes:
-
- Some changes were made in this version of the SLIDE program. They are:
-
- 1) The SLIDE program is now a 386 program. This version of
- SLIDE is only compatiable with CADKEY v5.0 386.
-
- Using SLIDE 386
-
- The command sequence for invoking SLIDE 386 is:
-
- SLIDE name
-
- Where:
-
- name = file name (including pathname) of the command file
- to be processed
-
- The SLIDE 386 program may be exited at any time by pressing the ESC key.
-
- The following commands are supported by the SLIDE 386 program and may be
- used in the command file:
-
- BOX - draw a box in the current active graphics window.
-
- Format:
-
- BOX color x1 y1 x2 y2
-
- color = color number between 0 and 255 to draw box in.
- x1 = x min value of box, as a real number between 0 and 1,
- where 0 is far left of window.
- y1 = y min value of box, as a real number between 0 and 1,
- where 0 is bottom of window.
- x2 = x max value of box, as a real number between 0 and 1,
- where 0 is far right of window.
- y2 = y max value of box, as a real number between 0 and 1,
- where 0 is top of window.
-
-
- CHAIN - close the current command file and execute another specified
- command file.
-
- Format:
-
- CHAIN name
-
- name = file name (including pathname) of the command file
- to be executed.
-
-
- CLEAR - clear the screen.
-
- Format:
-
- CLEAR color
-
- color = color number between 0 and 255 to clear the screen
- with.
-
-
- FILLBOX - draw a filled box in the current active graphics
- window.
-
- Format:
-
- FILLBOX color x1 y1 x2 y2
-
- color = color number between 0 and 255 to fill box with.
- x1 = x min value of box, as a real number between 0 and 1,
- where 0 is far left of window.
- y1 = y min value of box, as a real number between 0 and 1,
- where 0 is bottom of window.
- x2 = x max value of box, as a real number between 0 and 1,
- where 1 is far right of window.
- y2 = y max value of box, as a real number between 0 and 1,
- where 1 is top of window.
-
-
- GOSUB - execute another command file, and return
- processing to current command file after new command
- file complete. Limited to one level of gosub from main
- command file.
-
- Format:
-
- GOSUB name
-
- name = file name (including pathname) of the command file
- to be executed.
-
-
- PAUSE - pause (halt) program operation until a key is hit.
-
- Format:
-
- PAUSE
-
-
- REM - remark line in a slide file.
-
- Format:
-
- REM
-
- REPEAT - repeat the commands in the current command file from the
- beginning of the file.
-
- Format:
-
- REPEAT
-
- SLIDE - retrieve and display a slide file.
-
- Format:
-
- SLIDE name
-
- name = file name (including pathname) of the slide file.
-
-
- SAVESLIDE - save the current screen as a slide file.
-
- Format:
-
- SAVESLIDE name
-
- name = file name (including pathname) for the slide file.
-
-
-
- SETPAL - set a single color in the graphics palette.
-
- Format:
-
- SETPAL palnum red green blue
-
- sred = red value. (real number between 0.0 and 1.0)
- sgreen = green value. (real number between 0.0 and 1.0)
- sblue = blue value. (real number between 0.0 and 1.0)
-
-
- SETRANGE - set a range of colors in the graphics palette.
-
- Format:
-
- SETRANGE spal npal sred sgreen sblue ered egreen eblue
-
- spal = starting palette index in range to set. (0-255)
- npal = number of colors to set in the palette.
- sred = starting red value (real number between 0.0 and 1.0)
- in range to set.
- sgreen = starting green value (real number between 0.0 and 1.0)
- in range to set.
- sblue = starting blue value (real number between 0.0 and 1.0)
- in range to set.
- ered = ending red value (real number between 0.0 and 1.0)
- in range to set.
- egreen = ending green value (real number between 0.0 and 1.0)
- in range to set.
- eblue = ending blue value (real number between 0.0 and 1.0)
- in range to set.
-
-
- TEXT - draw a text string in a current active text window.
-
- Format:
-
- TEXT wnum row col string
-
- wnum = text window number (1-7) of a previously
- opened text window.
- row = row of the text window to position first
- character of the string. Rows are 0 relative
- from the top of the text window.
- col = column of the text window to position first
- character of the string. Cols are 0 relative
- from the left of the text window.
-
- TEXTWIN_CLEAR - clears the contents of a text window.
-
- Format:
-
- TEXTWIN_CLEAR wnum
-
- wnum = text window number (1-7) of a current active
- text window.
-
-
- TEXTWIN_CLOSE - close and clears a text window.
-
- Format:
-
- TEXTWIN_CLOSE wnum
-
- wnum = text window number (1-7) of a current active
- text window.
-
- Note: After a text window is closed, the wnum can
- be reused to open another text window.
-
- TEXTWIN_OPEN - opens a text window
-
- Format:
-
- TEXTWIN_OPEN wnum rows cols txfcol txbcol bord bdcol xbase ybase
- xa ya
-
- wnum = text window number (1-7) of a non-active
- text window.
- rows = number of character rows for window.
- cols = number of character cols for window.
- txfcol = text foreground color. (0-15)
- txbcol = text background color. (0-15)
- bord = border option. (0=none 1=single 2=double)
- bdcol = border color. (0-15)
- xbase = position to place text window
- using a real number from 0.0-1.0
- ybase = position to place text window
- using a real number from 0.0-1.0
- xa = x alignment option. (-1=left 0=center 1=right)
- This specifies the relative alignment of xbase.
- ya = y alignment option -1=bottom 0=center 1=top
- This specifies the relative alignment of ybase.
-
- Note: The size of the text is calculated using the
- grtxtrows varible in the configuration file.
-
-
-
- WAIT - wait (suspend) program operation for a specified time.
-
- Format:
-
- WAIT nsec
-
- nsec = number of seconds to wait.
-