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

  1. #define DLGBOX_OPH
  2.  
  3. #ifndef BWIN_OPH
  4. #include <sdk\bwin>
  5. #endif
  6.  
  7. #ifndef TEXTWIN_OPH
  8. #include <sdk\textwin>
  9. #endif
  10.  
  11. /* Constants for dlgchain */
  12.  
  13. #define PR_WIN_NO_DDP PR_WIN_FORCE_TOP
  14. #define HELPDLG_BASIC_HELP PR_WIN_FORCE_RIGHT
  15. #define HELPDLG_HELP_INDEX PR_WIN_FORCE_LEFT
  16. #define DLGCHAIN_WITH_MENU PR_WIN_FORCE_BOTTOM
  17.  
  18. /* Property of dlgchain */
  19.  
  20. STRUCT PRS_DLGCHAIN
  21.     next%
  22. ENDS
  23.  
  24. STRUCT PR_DLGCHAIN
  25.     root#(SIZEOF(PRS_ROOT))
  26.     win#(SIZEOF(PRS_WIN))
  27.     dlgchain#(SIZEOF(PRS_DLGCHAIN))
  28. ENDS
  29.  
  30. /* Constants for dlgbox */
  31.  
  32. #define DLGBOX_NOTIFY_ENTER 0x0001
  33. #define DLGBOX_NOTIFY_ESCAPE 0x0002
  34. #define DLGBOX_RBUF_FILLED 0x0004
  35. #define DLGBOX_ACTION_LIST 0x0008
  36. #define DLGBOX_FROM_HWIF 0x0010
  37. #define DLGBOX_SMALL_FONT DLGBOX_FROM_HWIF
  38. #define DLGBOX_NO_WAIT 0x0020
  39. #define DLGBOX_NOTIFY_ALL_ACT 0x0040
  40. #define DLGBOX_REPORT_ACT_HORIZ 0x0080
  41. #define DLGBOX_APPEND_UNITS_TITLE 0x0100
  42. #define DLGBOX_SMALL_ACTION_LIST 0x0200
  43. #define DLGBOX_NO_SHADOW 0x0400
  44. #define DLGBOX_NO_DDP 0x0800
  45. #define DLGBOX_ITEM_NOTIFY_CHANGED 0x0001
  46. #define DLGBOX_ITEM_DIMMED 0x0002
  47. #define DLGBOX_ITEM_UNDERLINED 0x0004
  48. #define DLGBOX_ITEM_APPL_CAT 0x0008
  49. #define DLGBOX_ITEM_CENTRE 0x0010
  50. #define DLGBOX_ITEM_DEAD 0x0020
  51. #define DLGBOX_ITEM_NOTIFY_FOCUS 0x0080
  52. #define DLGBOX_ITEM_NEEDS_PACK 0x0100
  53. #define DLGBOX_ITEM_LOCKED 0x0200
  54. #define DLGBOX_ITEM_CAN_DEFER_X 0x0400
  55. #define DLGBOX_ITEM_X_PENDING 0x0800
  56. #define DLGBOX_ITEM_ACLIST 0x1000
  57. #define DLGBOX_LEFT_GAP (BWIN_CUSHION_X+7)
  58. #define DLGBOX_BULLET_GAP 3
  59. #define DLGBOX_VERT_GAP (BWIN_CUSHION_Y+2)
  60. #define UNDERLINE_DEPTH 3
  61. #define EXTRA_GUTTER_WIDTH 4
  62. #define DLGBOX_MAX_ITEM 9
  63. #define DLGBOX_ROMAN8_FONT 5
  64.  
  65. /* Types for dlgbox */
  66.  
  67. STRUCT HD_DLGBOX_RSC
  68.     flags%
  69.     title#(1)
  70. ENDS
  71.  
  72. STRUCT AD_DLGBOX
  73.     flags%
  74.     class#
  75.     prompt#(1)
  76. ENDS
  77.  
  78. STRUCT DLGBOX_ITEM
  79.     hand%
  80.     prompt%
  81.     flags%
  82. ENDS
  83.  
  84. /* AC: the following should be a union */
  85.  
  86. STRUCT DLGBOX_ITEM_UNION
  87.     item#(OPPEVAL(SIZEOF(DLGBOX_ITEM)*7))
  88. ENDS
  89.  
  90. /* Property of dlgbox */
  91.  
  92. STRUCT PRS_DLGBOX
  93.     u#(SIZEOF(DLGBOX_ITEM_UNION))
  94.     rbuf%
  95.     dimrid%
  96.     helprid%
  97.     flags%
  98.     focus#
  99.     count#
  100.     current#
  101.     font#
  102.     absorb#
  103.     changed#
  104. ENDS
  105.  
  106. STRUCT PR_DLGBOX
  107.     root#(SIZEOF(PRS_ROOT))
  108.     win#(SIZEOF(PRS_WIN))
  109.     dlgchain#(SIZEOF(PRS_DLGCHAIN))
  110.     dlgbox#(SIZEOF(PRS_DLGBOX))
  111. ENDS
  112.  
  113. /* Types for errordlg */
  114.  
  115. STRUCT RBUF_ERROR
  116.     error%
  117.     message#(80)
  118. ENDS
  119.  
  120. /* Property of errordlg */
  121.  
  122. STRUCT PR_ERRORDLG
  123.     root#(SIZEOF(PRS_ROOT))
  124.     win#(SIZEOF(PRS_WIN))
  125.     dlgchain#(SIZEOF(PRS_DLGCHAIN))
  126.     dlgbox#(SIZEOF(PRS_DLGBOX))
  127. ENDS
  128.  
  129. /* Types for querydlg */
  130.  
  131. STRUCT RBUF_QUERY
  132.     result%
  133.     message#(100)
  134. ENDS
  135.  
  136. /* Property of querydlg */
  137.  
  138. STRUCT PR_QUERYDLG
  139.     root#(SIZEOF(PRS_ROOT))
  140.     win#(SIZEOF(PRS_WIN))
  141.     dlgchain#(SIZEOF(PRS_DLGCHAIN))
  142.     dlgbox#(SIZEOF(PRS_DLGBOX))
  143. ENDS
  144.  
  145. /* Property of flistdlg */
  146.  
  147. STRUCT PR_FLISTDLG
  148.     root#(SIZEOF(PRS_ROOT))
  149.     win#(SIZEOF(PRS_WIN))
  150.     dlgchain#(SIZEOF(PRS_DLGCHAIN))
  151.     dlgbox#(SIZEOF(PRS_DLGBOX))
  152. ENDS
  153.