home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / batch / sputils.zip / BOX.DOC < prev    next >
Text File  |  1991-01-06  |  2KB  |  69 lines

  1. Display Box  version 1.0 (C) SPETER SOFTWARE,   January 1991.
  2.  
  3. This program will display a box using a given text attribute.
  4.  
  5. The program was written in Borland's Turbo Pascal 5.5
  6.  
  7. Usage:
  8. ------
  9. 1:   BOX [/h]
  10.  
  11.         Output a help screen.
  12.           /h        (optional)
  13.  
  14. 2:   BOX [/s<num>] [/n] [/a] box-type x1 y1 x2 y2 attr
  15.  
  16.         Display a box from (x1,y1) to (x2,y2).
  17.           /s<num>   (optional)  sets the number of spaces before and after
  18.                                 the box's verticals - inside and out, the
  19.                                 default for <num> is 0;
  20.           /n        (optional)  "No-clear", only clear the characters beside
  21.                                 the box's verticals (as set by /s);
  22.           /a        (optional)  change the text attributes of the characters
  23.                                 to "attr", but don't clear the characters
  24.                                 inside the box;
  25.           box-type              either  s  or  d  (single / double)
  26.           x1 y1                 top left corner of box (or corner of space 
  27.                                 before the box - as set with /s)
  28.           x2 y2                 bottom right corner of the box (or space - 
  29.                                 as above)
  30.           attr                  character attribute [1..255], see SHOWATTR.EXE;
  31.  
  32.           x's                   in the range  [1..80]
  33.           y's                   in the range  [1..25]
  34.  
  35. Example:
  36. --------
  37.       Box /s2 s 40 3 75 6 23
  38.  
  39.           /s2      insert 2 blanks outside and inside the box;
  40.           s        use a single line box (not a double);
  41.           40 3     place the top-left of the box at column 42 of line 3;
  42.                    NOTE: because /s2 was specified the corner is moved 2.
  43.           75 6     the bottom-right corner;
  44.           23       text attribute (white on blue);
  45.  
  46.      Result:
  47. 1
  48. 2 <-screen line
  49. 3                               (40,3) * ┌─────────────────────────────┐  
  50. 4                                        │                             │  
  51. 5                                        │                             │  
  52. 6                                        └─────────────────────────────┘  
  53.  
  54. Correspondence:
  55. ---------------
  56.     Please address any comments to:
  57.  
  58.         Stephen Peter
  59.  
  60.     INTERNET:
  61.         steve@cad0.arch.unsw.oz.au
  62.  
  63.     POST:
  64.         SPETER SOFTWARE
  65.         P.O. BOX 643
  66.         LANE COVE
  67.         NSW  2066
  68.     AUSTRALIA
  69.