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

  1. #define TEXTWIN_OPH
  2.  
  3. #ifndef LODGER_OPH
  4. #include <sdk\lodger>
  5. #endif
  6.  
  7. #ifndef EDIT_OPH
  8. #include <sdk\edit>
  9. #endif
  10.  
  11. /* Constants for textwin */
  12.  
  13. #define PR_TEXTWIN_AL_LEFT 0x00
  14. #define PR_TEXTWIN_AL_RIGHT 0x01
  15. #define PR_TEXTWIN_AL_CENTRE 0x02
  16. #define PR_TEXTWIN_BOLD 0x04
  17. #define PR_TEXTWIN_BULLET 0x20
  18. #define PR_TEXTWIN_POPOUT 0x40
  19. #define PR_TEXTWIN_FLASHING 0x80
  20. #define IN_TEXTWIN_AL_LEFT PR_TEXTWIN_AL_LEFT
  21. #define IN_TEXTWIN_AL_RIGHT PR_TEXTWIN_AL_RIGHT
  22. #define IN_TEXTWIN_AL_CENTRE PR_TEXTWIN_AL_CENTRE
  23. #define IN_TEXTWIN_BOLD PR_TEXTWIN_BOLD
  24. #define IN_TEXTWIN_BULLET PR_TEXTWIN_BULLET
  25. #define IN_TEXTWIN_POPOUT PR_TEXTWIN_POPOUT
  26. #define SE_TEXTWIN_ALIGN (PR_TEXTWIN_AL_RIGHT|PR_TEXTWIN_AL_CENTRE)
  27. #define SE_TEXTWIN_BOLD PR_TEXTWIN_BOLD
  28. #define SE_TEXTWIN_TEXT 0x08
  29. #define SE_TEXTWIN_BULLET PR_TEXTWIN_BULLET
  30.  
  31. /* Types for textwin */
  32.  
  33. STRUCT N_TEXTWIN
  34.     state%
  35.     label#(1)
  36. ENDS
  37.  
  38. STRUCT E_TEXTWIN
  39.     flags%
  40.     state%
  41.     buf%
  42.     len%
  43. ENDS
  44.  
  45. /* Property of textwin */
  46.  
  47. STRUCT PRS_TEXTWIN
  48.     label%
  49.     state%
  50. ENDS
  51.  
  52. STRUCT PR_TEXTWIN
  53.     root#(SIZEOF(PRS_ROOT))
  54.     win#(SIZEOF(PRS_WIN))
  55.     lodger#(SIZEOF(PRS_LODGER))
  56.     textwin#(SIZEOF(PRS_TEXTWIN))
  57. ENDS
  58.