home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / EDITOR / TDE120.ZIP / TDECOLOR.H < prev    next >
Encoding:
Text File  |  1991-10-05  |  2.2 KB  |  60 lines

  1.  
  2. char *sample_screen[] = {
  3. "╒═══════╡ Sample Help Screen ╞════════╕ ╒════════╡ Sample Text Screen ╞════════╕",
  4. "│                                     │ │ File Header    Size = xxx    Line:Col│",
  5. "│ * Press Enter (Return) to move      │ │                                      │",
  6. "│   to the next color field.          │ │ Text area.  Regular text will be     │",
  7. "│                                     │ │ will be displayed in this color.     │",
  8. "│ * The Up and Down arrows change     │ │                                      │",
  9. "│   the foreground color.             │ │ Block area.  Line and box blocks are │",
  10. "│                                     │ │ marked in this color.                │",
  11. "│ * The Page up and Page down keys    │ │ <====== End of File ======>          │",
  12. "│   change the background color.      │ │ Warning Messages                     │",
  13. "│                                     │ │ Mode/Information         wrapped...  │",
  14. "╘═════════════════════════════════════╛ ╘══════════════════════════════════════╛",
  15. NULL
  16. };
  17.  
  18.  
  19. char *field_screen[] = {
  20. "                                        Help screen [   ] Warning Messages [   ]",
  21. " F2 = Load default colors               File Header [   ] Mode/Information [   ]",
  22. " F3 = Quit                              Text Area   [   ] wrapped...       [   ]",
  23. "F10 = Write colors to tde.exe           Block Color [   ] End of File      [   ]",
  24. NULL
  25. };
  26.  
  27. struct {
  28.    int line;
  29.    int col;
  30.    int color;
  31.    void (*show_me)( void );
  32. } fields[8] = {
  33.    { 12, 52, 0 }, { 13, 52, 0 }, { 14, 52, 0 },  { 15, 52, 0 },
  34.    { 12, 75, 0 }, { 13, 75, 0 }, { 14, 75, 0 },  { 15, 75, 0 }
  35. };
  36.  
  37. #define HERC_REVERSE    0x70
  38. #define HERC_UNDER      0x01
  39. #define HERC_NORMAL     0x07
  40. #define HERC_HIGH       0x0F
  41.  
  42. #define COLOR_HEAD      0x4b
  43. #define COLOR_TEXT      0x07
  44. #define COLOR_MODE      0x17
  45. #define COLOR_BLOCK     0x7f
  46. #define COLOR_MESSAGE   0x0f
  47. #define COLOR_HELP      0x1A
  48. #define COLOR_WRAP      0x1A
  49. #define COLOR_EOF       0x09
  50.  
  51.  
  52. #define HEAD            0
  53. #define TEXT            1
  54. #define MODE            2
  55. #define BLOCK           3
  56. #define WARNING         4
  57. #define HELP            5
  58. #define WRAP            6
  59. #define CEOF            7
  60.