home *** CD-ROM | disk | FTP | other *** search
-
- The SLIDE program v3.5 5/22/89
-
- Overview
-
- The SLIDE 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
-
- To install the SLIDE program, copy the SLIDE.EXE file from the UTILITIES
- diskette into the directory where your CADKEY v3.5 program resides.
- The SLIDE program uses the CADKEY v3.5 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 program must have been created
- by either CADKEY or SLIDE on the same graphics device that is being used
- for their display.
-
- Support for the HALO graphics drivers are provided by using
- SLIDEH.exe
-
- 3.5 Upgrade Notes:
-
- Some changes were made in this version of the SLIDE program. They are:
-
- 1) SLIDE 3.02 command files are not compatible with 3.5 slide. HALO
- 3.02 slide file are not compatible with this version.
-
- Using SLIDE
-
- The command sequence for invoking SLIDE is:
-
- SLIDE name
-
- where:
-
- name = file name (including pathname) of the command file
- to be processed
-
- The SLIDE program may be exited at any time by pressing the ESC key.
-
- The following commands are supported by the SLIDE 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 wind
- col = column of the text window to position first
- character of the string. Cols are 0 relative
- from the left of the text wind
-
- 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 widow.
- 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
-