home *** CD-ROM | disk | FTP | other *** search
/ HomeWare 14 / HOMEWARE14.bin / netutils / pmail311.arj / RESOURCE.ZIP / DEFINES.RH < prev    next >
Text File  |  1993-02-08  |  4KB  |  99 lines

  1. #
  2. #  General-purpose symbols for use when compiling resources
  3. #  for use with the Manager Module.
  4. #
  5. #  Copyright (c) 1991-93, David Harris, All Rights Reserved.
  6. #
  7. #  Must be compiled with ResCom, the Manager Module
  8. #  Resource Compiler.
  9. #
  10. #  This file and data is proprietary to David Harris: changes
  11. #  may only be made to it by his explicit permission, and any
  12. #  changes to it automatically become his property.
  13. #
  14.  
  15.        # Window and display control constants
  16.  
  17. define wshadow 8192    # add a drop shadow to a window
  18. define wliteral 4096   # display: OR to force black over default background
  19. define wnoclip 4096    # OR with this if you want no clipping on a window
  20. define wzip 2048       # windows: zip from cursor position
  21. define wcentre 1024    # display: centre text; windows: centre onscreen
  22. define wadjacent 512   # display: right flush; windows: open against cursor
  23. define wplain 256      # windows: no effects; display: (ignored)
  24. define wblink 128      # display: blinking text; windows: blinking frame
  25. define bright 15
  26. define dim 7
  27.  
  28.  
  29.        # Box style defines - use for windows and frames
  30.  
  31. define BSINGLE 3       # Set single-line frames for boxes and windows
  32. define BDOUBLE 1       # Double-line frames
  33. define BMIXED 0        # Double frame along top/bottom, single down sides
  34. define BSOLID 2        # Solid box frames
  35. define BDOTS 4         # Dotted box frames
  36.  
  37.  
  38.        # Colour defines - use anywhere where colours are defined.
  39.        # First - foreground colours.
  40.  
  41. define BLACK            0
  42. define BLUE             1
  43. define GREEN            2
  44. define CYAN             3
  45. define RED              4
  46. define MAGENTA          5
  47. define BROWN            6
  48. define LIGHTGREY        7
  49. define DARKGREY         8
  50. define LIGHTBLUE        9
  51. define LIGHTGREEN      10
  52. define LIGHTCYAN       11
  53. define LIGHTRED        12
  54. define LIGHTMAGENTA    13
  55. define YELLOW          14
  56. define WHITE           15
  57.  
  58.        # ... and now, background colours. OR these with the
  59.        # foreground colours for combinations.
  60.  
  61. define BBLUE           16
  62. define BGREEN          32
  63. define BCYAN           48
  64. define BRED            64
  65. define BMAGENTA        80
  66. define BBROWN          96
  67. define BLIGHTGREY     112
  68.  
  69.  
  70.        # Data-type strings for "data" statements. These control
  71.        # the type of data a field will accept.
  72.  
  73. define GT_STRING        0      # field will accept any string
  74. define GT_INTEGER       1      # field will only accept decimal integers
  75. define GT_BOOLEAN       8      # field will only accept "Yes" or "No"
  76. define GT_CHAR         16      # field will accept any single character
  77. define GT_LONGINT      32      # field will accept only long decimal integers
  78. define GT_FNAME        64      # field will only accept filenames
  79. define GT_UPCASE      128      # OR with this to force a field to uppercase
  80.  
  81.        # Control values for "data" statements. These are used
  82.        # to control the behaviour of the line editor.
  83.  
  84. define GEND             1      # editing starts at the end of the field
  85. define GNOCLEAR         2      # non-edit first key shouldn't clear the field
  86. define GSECRET          4      # the input should not display
  87. define GLEFT         1024      # the field should be left-justified
  88. define GNODELIM      2048      # no delimiters should be displayed
  89.  
  90.  
  91.        # Menu control values. These can be ORed together to
  92.        # control the behaviour of menus.
  93.  
  94. define MNOCANCEL        1      # <Esc> is not to cancel the menu
  95. define MNOLIGHTBAR      2      # no lightbar should be drawn
  96. define MSAVEDEFAULT     4      # save the last choice across calls
  97. define MCHECK           8      # add checkmarks to items on <space>
  98. define MLREXIT         16      # exit menu on left/right arrow
  99.