home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / psion / opp16f_zip / INCLUDE / SDK / DTEDIT.OPH < prev    next >
Encoding:
Text File  |  1995-12-21  |  1.4 KB  |  65 lines

  1. #define DTEDIT_OPH
  2.  
  3. #ifndef LODGER_OPH
  4. #include <sdk\lodger>
  5. #endif
  6.  
  7. #ifndef MFNE_OPH
  8. #include <sdk\mfne>
  9. #endif
  10.  
  11. /* Constants for dtedit */
  12.  
  13. #define SE_DTEDIT_VALUE 0x01
  14. #define SE_DTEDIT_LOW 0x02
  15. #define SE_DTEDIT_HIGH 0x04
  16. #define PR_DTEDIT_DATE    0x0000
  17. #define PR_DTEDIT_TIME    0x0100
  18. #define PR_DTEDIT_DURATION    0x0200
  19. #define PR_DTEDIT_SECONDS    0x1000
  20. #define PR_DTEDIT_NEGATIVE    0x2000
  21. #define PR_DTEDIT_AMPM    0x4000
  22. #define PR_DTEDIT_NEG_DURATION    (PR_DTEDIT_DURATION|PR_DTEDIT_NEGATIVE)
  23. #define IN_DTEDIT_INIT    (SE_DTEDIT_VALUE|SE_DTEDIT_LOW|SE_DTEDIT_HIGH)
  24. #define IN_DTEDIT_DDMMYYYY    (PR_DTEDIT_DATE)
  25. #define IN_DTEDIT_HHMMSS (PR_DTEDIT_TIME|PR_DTEDIT_SECONDS)
  26. #define IN_DTEDIT_HHMM (PR_DTEDIT_TIME)
  27. #define IN_DTEDIT_HHMMSS_D (PR_DTEDIT_TIME|PR_DTEDIT_DURATION|PR_DTEDIT_SECONDS)
  28. #define IN_DTEDIT_HHMM_D (PR_DTEDIT_TIME|PR_DTEDIT_DURATION)
  29. #define IN_DTEDIT_HHMMSS_ND (PR_DTEDIT_TIME|PR_DTEDIT_NEG_DURATION|PR_DTEDIT_SECONDS)
  30. #define IN_DTEDIT_HHMM_ND (PR_DTEDIT_TIME|PR_DTEDIT_NEG_DURATION)
  31.  
  32. /* Types for dtedit */
  33.  
  34. STRUCT IN_DTEDIT
  35.     flags%
  36.     value&
  37.     low&
  38.     high&
  39. ENDS
  40.  
  41. STRUCT SE_DTEDIT
  42.     flags%
  43.     value&
  44.     low&
  45.     high&
  46. ENDS
  47.  
  48. /* Property of dtedit */
  49.  
  50. STRUCT PRS_DTEDIT
  51.     cal%
  52.     dType%
  53.     changed#
  54.     inSelfCheck#
  55.     in#(SIZEOF(IN_DTEDIT))
  56. ENDS
  57.  
  58. STRUCT PR_DTEDIT
  59.     root#(SIZEOF(PRS_ROOT))
  60.     win#(SIZEOF(PRS_WIN))
  61.     lodger#(SIZEOF(PRS_LODGER))
  62.     mfne#(SIZEOF(PRS_MFNE))
  63.     dtedit#(SIZEOF(PRS_DTEDIT))
  64. ENDS
  65.