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

  1. #
  2. #   FORMS.RH
  3. #   Definitions to be included into forms created for
  4. #   Pegasus Mail v3.0.
  5. #
  6. #   Copright (c) 1993, David Harris, All Rights Reserved.
  7. #
  8.  
  9. define F_TO             1   # The TO: field for the message
  10. define F_SUBJECT        2   # ... the subject field
  11. define F_CC             3   # ... the CC field
  12. define F_BCC            4   # ... the BCC field
  13. define F_REPLY_TO       5   # ... the reply-to field
  14. define F_READING        6   # ... the reading confirmation flag
  15. define F_DELIVER        7   # ... the delivery confirmation flag
  16. define F_NOSIG          8   # ... the "omit signature" flag
  17. define F_ENCRYPT        9   # ... the encrypt flag for the message
  18. define F_KEY            10  # ... the encryption key for the message
  19. define F_COPYSELF       11  # ... the copy-self flag for the message
  20. define F_MESSAGE        12  # ... the message text (usually an editor)
  21. define F_ATTACH         13  # ... the attachment list for the message
  22. define F_URGENT         14  # ... the "urgent" flag for the message
  23. define F_STRING         15  # ... a user-defined string field
  24. define F_INTEGER        16  # ... a user-defined integer field
  25. define F_BOOLEAN        17  # ... a user-defined boolean (Y/N) field
  26.  
  27. define F_MHS_TEMPLATE   18  # ... template to format the form for MHS
  28. define F_SMTP_TEMPLATE  19  # ... template to format the form for SMTP
  29. define F_MHS_HEADERS    20  # ... template to format headers for MHS
  30. define F_SMTP_HEADERS   21  # ... template to format headers for SMTP
  31. define F_VALIDATION     22  # ... a validation template
  32. define F_WINDOW         23  # ... the window for the form
  33. define F_LOG            24  # ... a logging resource
  34. define F_SERIAL         25  # ... a serial number resource
  35. define F_STATUS         26  # ... a status area
  36.  
  37.  
  38. typedef formtable 50
  39.    {
  40.    repeat, 
  41.    integer,    # Form number (use the name you gave to the resource entry)
  42.    integer,    # Correlation (choose from F_* fields defined above)
  43.    integer,    # Help value (use the name of the help text resource)
  44.    integer,    # Validation (use the name of the validation text resource)
  45.    integer,    # Text resource containing the status text (0 for none)
  46.    integer     # Default: for booleans, 1/0; for ints/strings; resource ID
  47.    };
  48.  
  49. typedef popup_menu 51
  50.    {
  51.    integer,    # Resource ID of menu (use the name you gave the menu)
  52.    integer,    # X-coordinate on the screen of the TLC of the menu
  53.    integer,    # Y-coordinate on the screen of the TLC of the menu
  54.    integer,    # X-coordinate of the display area for the menu result
  55.    integer,    # Y-coordinate of the display area for the menu result
  56.    integer,    # Attribute word for the popup menu (colours etc)
  57.    integer     # Attribute word for the menu result display text
  58.    };
  59.  
  60. typedef logfile 53
  61.    {
  62.    string 64,  # The filename string to which logging should be written
  63.    integer     # The resource number of the TEXT resource to use ...
  64.    };          # ... as a format string for the log
  65.  
  66. typedef box 55
  67.    {
  68.    integer, integer,       # X and Y co-ordinates of top left corner
  69.    integer, integer,       # Width and height of the box
  70.    integer,                # Line style (BSINGLE etc) for box
  71.    integer                 # Frame attribute for box.
  72.    };
  73.  
  74. typedef line 56
  75.    {
  76.    integer, integer,       # X and Y co-ordinates of starting position
  77.    integer, integer,       # EITHER length/0 or 0/height of line
  78.    integer,                # attribute word for line
  79.    char                    # the character to use to draw the line
  80.    };
  81.  
  82. typedef editor 57
  83.    {
  84.    integer, integer,       # X and Y co-ordinates of TLC of editor area
  85.    integer, integer,       # Width and Depth of editor area
  86.    integer,                # Maximum line length for editor
  87.    integer,                # Maximum number of lines the editor should accept
  88.    integer,                # Maximum length of edited text in bytes
  89.    integer                 # Display attribute for editor area.
  90.    };
  91.  
  92.  
  93.