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

  1.  
  2. #define HWIF_OPH
  3.  
  4. #ifndef P_GRAF_OPH
  5. #include <p\graf>
  6. #endif
  7.  
  8. #ifndef WLIB_OPH
  9. #include <sdk\wlib>
  10. #endif
  11.  
  12. #ifdef STDEPOC_OPH
  13. #  ifndef P_CONS_OPH
  14. #  include <p\cons>
  15. #  endif
  16. #endif
  17.  
  18. STRUCT H_MENU_DATA
  19.     title%
  20.     nlines%
  21. ENDS
  22.  
  23. #define H_DIALOG_TEXT    0
  24. #define H_DIALOG_CHOICE   1
  25. #define H_DIALOG_NUMBER   2
  26. #define H_DIALOG_FLOAT   3
  27. #define H_DIALOG_TIME    4
  28. #define H_DIALOG_DATE    5
  29. #define H_DIALOG_EDIT    6
  30. #define H_DIALOG_SEDIT   7
  31. #define H_DIALOG_XINPUT   8
  32. #define H_DIALOG_FSEL    9
  33. #define H_DIALOG_BUTTONS  10
  34.  
  35. STRUCT H_DI_TEXT
  36.     str%
  37.     type%
  38. ENDS
  39.  
  40. #define H_DTEXT_ALIGN_LEFT   0
  41. #define H_DTEXT_ALIGN_RIGHT   1
  42. #define H_DTEXT_ALIGN_CENTRE  2
  43. #define H_DTEXT_BOLD      0x100
  44. #define H_DTEXT_UNDERLINE    0x200
  45. #define H_DTEXT_SELECTABLE   0x400
  46.  
  47. STRUCT H_DI_CHOICE
  48.     u%
  49.     menu%
  50. ENDS
  51.  
  52. STRUCT H_DI_NUMBER
  53.     value%
  54.     low&
  55.     high&
  56. ENDS
  57.  
  58. STRUCT H_DI_FLOAT
  59.     value%
  60.     low 
  61.     high 
  62. ENDS
  63.  
  64. STRUCT H_DI_TIME
  65.     value%
  66.     low&
  67.     high&
  68.     type%
  69. ENDS
  70.  
  71. #define H_DTIME_SHOW_SECONDS  1
  72. #define H_DTIME_DURATION    2
  73.  
  74. STRUCT H_DI_DATE
  75.     value%
  76.     low&
  77.     high&
  78. ENDS
  79.  
  80. #define H_LAST_DAY   93501
  81. #define H_FIRST_SYS_DAY 25567
  82. #define H_LAST_SYS_DAY 75276
  83.  
  84. STRUCT H_DI_EDIT
  85.     str%
  86.     len%
  87. ENDS
  88.  
  89. STRUCT H_DI_SEDIT
  90.     str%
  91.     len%
  92.     width%
  93. ENDS
  94.  
  95. STRUCT H_DI_XINPUT
  96.     str%
  97. ENDS
  98.  
  99. STRUCT H_DI_FSEL
  100.     fname%
  101.     flags%
  102. ENDS
  103.  
  104. STRUCT H_CARD
  105.     str%
  106.     accel%
  107. ENDS
  108.  
  109. STRUCT H_CHOICE
  110.     str%
  111. ENDS
  112.  
  113. STRUCT H_BUTTON
  114.     str%
  115.     keycode%
  116. ENDS
  117.  
  118. #define W_EVENT_KEY (CONS_SPECIAL_EVENT*256)
  119. #define H_FILE_ALLOW_DIRS 0x02
  120. #define H_FILE_JUST_DIRS 0x04
  121. #define H_FILE_FORCE_NXIST 0x08
  122. #define H_FILE_NO_AUTOQUERY 0x10
  123. #define H_FILE_ACCEPT_NULL 0x20
  124. #define H_FILE_SET_DEFEXT 0x40
  125. #define H_FILE_CAN_WILDCARD 0x80
  126. #define H_FILE_RESTRICT_LIST H_FILE_FORCE_NXIST
  127. #define H_FILE_PICK_SELECTOR 0
  128. #define H_FILE_NEW_EDITOR 0x01
  129. #define H_PRINT_PAGE 0x01
  130. #define H_PRINT_LINE 0x02
  131. #define H_PRINT_RIGHT 0x04
  132. #define H_PRINT_TEXT 0x10
  133. #define H_PRINT_KEEP 0x8000
  134. #define H_PRINT_STY_UNDERLINE 0x01
  135. #define H_PRINT_STY_BOLD 0x02
  136. #define H_PRINT_STY_ITALIC 0x04
  137. #define H_PRINT_STY_SUPER 0x08
  138. #define H_PRINT_STY_SUB 0x10
  139.  
  140. STRUCT H_PRINT
  141.     flags%
  142.     typf%
  143.     fheight%
  144.     style%
  145.     down%
  146.     indent%
  147.     height%
  148.     right%
  149.     buf%
  150.     blen%
  151. ENDS
  152.  
  153. #define H_TIME_SET_SDATE 0
  154. #define H_TIME_SET_DATE 1
  155. #define H_TIME_SET_DAYSEC 2
  156. #define H_TIME_SET_NOW 3
  157. #define H_TIME_SENSE_BOTH 3
  158. #define H_TIME_SENSE_DATE 4
  159. #define H_TIME_SENSE_TIME 5
  160. #define H_TIME_FORMAT_NO_DAY 0x0004
  161. #define H_TIME_FORMAT_NO_MONTH 0x0008
  162. #define H_TIME_FORMAT_NO_YEAR 0x0010
  163. #define H_TIME_FORMAT_MONTH_NAME 0x0020
  164. #define H_TIME_FORMAT_SUFFIX 0x0040
  165. #define H_TIME_FORMAT_DAY_NAME 0x0080
  166. #define H_TIME_FORMAT_NO_CENTURY 0x0100
  167. #define H_TIME_FORMAT_NO_SECONDS 0x0200
  168. #define H_ALARM_TIMED 2
  169. #define H_ALARM_UNTIMED 1
  170.  
  171. STRUCT H_EDIT_BOX
  172.     maxchars%
  173.     vulen%
  174.     vislines%
  175.     pos#(SIZEOF(P_POINT))
  176.     win%
  177.     font%
  178.     style%
  179.     lead_tot%
  180.     lead_top%
  181. ENDS
  182.  
  183. STRUCT H_SCRLAY_PLX
  184.     pos%
  185.     line%
  186.     x%
  187. ENDS
  188.  
  189. #define H_EDIT_BOX_CLIPBOARD 0x0040
  190. #define H_EDIT_BOX_LEFT_CURSOR 0x0200
  191. #define H_EDIT_BOX_FONT 0x1000
  192. #define H_EDIT_BOX_LEADING 0x2000
  193. #define H_EDIT_BOX_VISLINES 0x4000
  194. #define HEB_FIND_BACKWARDS 0x01
  195. #define HEB_FIND_CASESENS 0x02
  196. #define H_DTEDIT_DDMMYYYY       0x0000
  197. #define H_DTEDIT_HHMMSS         0x1100
  198. #define H_DTEDIT_HHMM           0x0100
  199. #define H_DTEDIT_HHMMSS_D       0x1300
  200. #define H_DTEDIT_HHMM_D         0x0300
  201. #define H_DTEDIT_SET_VALUE      0x0001
  202. #define H_DTEDIT_SET_LOW        0x0002
  203. #define H_DTEDIT_SET_HIGH       0x0004
  204.  
  205. STRUCT H_DTEDIT
  206.     flags%
  207.     value&
  208.     low&
  209.     high&
  210.     pos#(SIZEOF(P_POINT))
  211.     win%
  212.     width%
  213.     emph%
  214. ENDS
  215.  
  216. STRUCT H_SE_DTEDIT
  217.     flags%
  218.     value&
  219.     low&
  220.     high&
  221. ENDS
  222.