home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / txcl552 / inc / tcxlbox.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-03-15  |  2.5 KB  |  44 lines

  1. /*=====[ The TesSeRact(TM) CXL User Interface Development System ]======*
  2.  | Copyright (c) 1987-1991, Innovative Data Concepts, Inc.
  3.  | All Rights Reserved.
  4.  |
  5.  | This Library is part of IDC's TesSeRact Development Tools product
  6.  | line. For information about other IDC products, call  1-215-443-9705.
  7.  *-V--------------------------------------------------------------------*
  8.  | $Header:   tcxlbox.h     552.0   17 Mar 1991 18:27:12  $
  9.  |
  10.  | $Log:   tcxlbox.h    $
  11.  *-D--------------------------------------------------------------------*
  12.  | <TCXLbox.h> : Definitions and declarations for box-drawing.
  13.  *-N-----------------------[ Notes and Caveats ]------------------------*
  14.  | 1) The BoxXX(b) macros REQUIRE declaration and initialization of a
  15.  |    pointer <b> to one of the box-type arrays as:
  16.  |       BytP  <b> = BoxPtr(t);
  17.  |    where <t> is one of:
  18.  |       0 = all single lines             3 = vert single, horiz double
  19.  |       1 = all double lines             4 = heavy lines
  20.  |       2 = horiz single, vert double    5 = spaces
  21.  *======================================================================*/
  22. #ifndef  _TCXLbox_
  23. #  define   _TCXLbox_   1              /* Only once!                    */
  24. #  ifndef   _TCXLdef_
  25. #     include  <TCXLdef.h>             /* System definitions            */
  26. #  endif
  27. GBL   BytP  CDC   _BoxTbl[];  /*- global box-drawing table -------------*/
  28.  
  29. #  define BoxPtr(t)  (_BoxTbl[t])      /* Point to box-type array       */
  30. #  define BoxTL(b)   (b)[0]            /* Top Left corner               */
  31. #  define BoxTH(b)   (b)[1]            /* Top Horizontal line           */
  32. #  define BoxTR(b)   (b)[2]            /* Top Right corner              */
  33. #  define BoxLV(b)   (b)[3]            /* Left Vertical line            */
  34. #  define BoxRV(b)   (b)[4]            /* Right Vertical line           */
  35. #  define BoxBL(b)   (b)[5]            /* Bottom Left corner            */
  36. #  define BoxBH(b)   (b)[6]            /* Bottom Horizontal line        */
  37. #  define BoxBR(b)   (b)[7]            /* Bottom Right corner           */
  38. #  define BoxMJ(b)   (b)[8]            /* Middle cross Junction         */
  39. #  define BoxLJ(b)   (b)[9]            /* Left tee Junction             */
  40. #  define BoxRJ(b)   (b)[10]           /* Right tee Junction            */
  41. #  define BoxTJ(b)   (b)[11]           /* Top tee Junction              */
  42. #  define BoxBJ(b)   (b)[12]           /* Bottom tee Junction           */
  43. #endif   /*- _TCXLbox_ : End of <TCXLbox.h> ----------------------------*/
  44.