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

  1. #define LISTBOX_OPH
  2.  
  3. #ifndef WIN_OPH
  4. #include <sdk\win>
  5. #endif
  6.  
  7. #ifndef BWIN_OPH
  8. #include <sdk\bwin>
  9. #endif
  10.  
  11. #ifndef MATCHER_OPH
  12. #include <sdk\matcher>
  13. #endif
  14.  
  15. /* Constants for listbox */
  16.  
  17. #define IN_LISTBOX_MATCHER 0x0001
  18. #define IN_LISTBOX_KEEP_ARRAY 0x0002
  19. #define IN_LISTBOX_TEXT_OFFSET 0x0004
  20. #define IN_LISTBOX_CUR_SET 0x0008
  21. #define IN_LISTBOX_FIRST_SET 0x0010
  22. #define IN_LISTBOX_LAST_SET 0x0020
  23. #define IN_LISTBOX_POS_ALIGN_X 0x0040
  24. #define IN_LISTBOX_POS_ALIGN_Y 0x0080
  25. #define IN_LISTBOX_MIN_WIDTH 0x0100
  26. #define IN_LISTBOX_AUTO_SIZE 0x0200
  27. #define IN_LISTBOX_FORCE_WIDE 0x0400
  28. #define IN_LISTBOX_WRAP_ROUND 0x0800
  29. #define IN_LISTBOX_FIXED_WIDTH 0x8000
  30. #define PR_LISTBOX_KEEP_ARRAY IN_LISTBOX_KEEP_ARRAY
  31. #define PR_LISTBOX_FORCE_WIDE IN_LISTBOX_FORCE_WIDE
  32. #define PR_LISTBOX_WRAP_ROUND IN_LISTBOX_WRAP_ROUND
  33. #define PR_LISTBOX_UNSTABLE 0x1000
  34. #define PR_LISTBOX_BOLD_CURSOR 0x2000
  35. #define PR_LISTBOX_PLAQUE 0x4000
  36. #define PR_LISTBOX_FIXED_WIDTH IN_LISTBOX_FIXED_WIDTH
  37. #define PR_LISTBOX_SMALL_FONT PR_WIN_FORCE_RIGHT
  38. #define LISTBOX_TOP_EDGE (BWIN_CUSHION_Y+2)
  39. #define LISTBOX_BOTTOM_EDGE (LISTBOX_TOP_EDGE+BWIN_SHADOW_1_HEIGHT)
  40. #define LISTBOX_LEFT_EDGE (BWIN_CUSHION_X+2)
  41. #define LISTBOX_RIGHT_EDGE (LISTBOX_LEFT_EDGE+BWIN_SHADOW_1_WIDTH)
  42. #define XLISTBOX_TOP_EDGE (LISTBOX_TOP_EDGE+6)
  43. #define XLISTBOX_BOTTOM_EDGE (LISTBOX_BOTTOM_EDGE+5)
  44. #define XLISTBOX_LEFT_EDGE (LISTBOX_LEFT_EDGE+6)
  45. #define XLISTBOX_RIGHT_EDGE (LISTBOX_RIGHT_EDGE+5)
  46. #define LISTBOX_OBLOID_INDENT 2
  47. #define LISTBOX_TITLELINE_HEIGHT 3
  48. #define LISTBOX_SCROLL_GUTTER 7
  49. #define LISTBOX_SCROLL_OFFSET 1
  50.  
  51. /* Types for listbox */
  52.  
  53. STRUCT IN_LISTBOX
  54.     flags%
  55.     array%
  56.     offset%
  57.     current%
  58.     top%
  59.     first%
  60.     last%
  61.     pos#(SIZEOF(P_POINT))
  62.     minwid%
  63. ENDS
  64.  
  65. /* Property of listbox */
  66.  
  67. STRUCT PRS_LISTBOX
  68.     match%
  69.     va%
  70.     flags%
  71.     width%
  72.     matchlen%
  73.     curoff%
  74.     offset%
  75.     current%
  76.     top%
  77.     first%
  78.     last%
  79.     vastart%
  80.     matchstart%
  81. ENDS
  82.  
  83. STRUCT PR_LISTBOX
  84.     root#(SIZEOF(PRS_ROOT))
  85.     win#(SIZEOF(PRS_WIN))
  86.     listbox#(SIZEOF(PRS_LISTBOX))
  87. ENDS
  88.