home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / drdialog / drdialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-15  |  7.8 KB  |  137 lines

  1. /*═════════════════════════════════════════════════════════════════════════════╗
  2. ║                                                                              ║
  3. ║  DrDialog Definitions                                                        ║
  4. ║                                                                              ║
  5. ║  Date: 06/15/93                                                              ║
  6. ║                                                                              ║
  7. ║  Written by: David C. Morrill                                                ║
  8. ║                                                                              ║
  9. ║  (c) Copyright IBM Corporation 1993                                          ║
  10. ║                                                                              ║
  11. ╚═════════════════════════════════════════════════════════════════════════════*/
  12.  
  13. /*═════════════════════════════════════════════════════════════════════════════╗
  14. ║                                                                              ║
  15. ║  Common 'style' bits for Turtle and Billboard controls:                      ║
  16. ║                                                                              ║
  17. ╚═════════════════════════════════════════════════════════════════════════════*/
  18.  
  19. #define CTL_CONTAINER 0x8000    /* Control is a container */
  20.  
  21. /*═════════════════════════════════════════════════════════════════════════════╗
  22. ║                                                                              ║
  23. ║  CANVAS 'style' bits:                                                        ║
  24. ║                                                                              ║
  25. ╚═════════════════════════════════════════════════════════════════════════════*/
  26.  
  27. #define CNV_BITMAP    0x000F    /* Bitmap selector mask */
  28. #define CNV_SIZE      0x00F0    /* Frame thickness mask */
  29. #define CNV_LEFT      0x0100    /* Text is left aligned */
  30. #define CNV_RIGHT     0x0200    /* Text is right aligned */
  31. #define CNV_TOP       0x0400    /* Text is top aligned */
  32. #define CNV_BOTTOM    0x0800    /* Text is bottom aligned */
  33. #define CNV_SEPARATOR 0x1000    /* Text should have a separator */
  34. #define CNV_RAISED    0x2000    /* Raised style frame */
  35. #define CNV_RIDGED    0x4000    /* Ridged style frame */
  36.  
  37. /*═════════════════════════════════════════════════════════════════════════════╗
  38. ║                                                                              ║
  39. ║  PAINT 'style' bits:                                                         ║
  40. ║                                                                              ║
  41. ╚═════════════════════════════════════════════════════════════════════════════*/
  42.  
  43. #define PNT_FOREGND   0x000F    /* Foreground color mask */
  44. #define PNT_BACKGND   0x00F0    /* Background color mask */
  45. #define PNT_PATTERN   0x0F00    /* Pattern mask */
  46.  
  47. /*═════════════════════════════════════════════════════════════════════════════╗
  48. ║                                                                              ║
  49. ║  MARQUEE Style Bits:                                                         ║
  50. ║                                                                              ║
  51. ╚═════════════════════════════════════════════════════════════════════════════*/
  52.  
  53. #define MRQ_BOLD      0x0001    /* Use Bold font */
  54. #define MRQ_ITALIC    0x0002    /* Use Italic font */
  55. #define MRQ_FONT      0x000C    /* Font family select mask: */
  56. #define MRQ_HELV      0x0000    /* - Helvetica */
  57. #define MRQ_TIMES     0x0004    /* - Times New Roman */
  58. #define MRQ_COURIER   0x0008    /* - Courier */
  59. #define MRQ_SYMBOL    0x000C    /* - Symbol */
  60. #define MRQ_L2R       0x0010    /* Direction is left to right */
  61. #define MRQ_EMBOSSED  0x0020    /* Embossed appearance */
  62. #define MRQ_SPEED     0x00C0    /* Speed mask: */
  63. #define MRQ_STOPPED   0x0000    /* - Stopped */
  64. #define MRQ_SLOW      0x0040    /* - Slow */
  65. #define MRQ_MEDIUM    0x0080    /* - Medium */
  66. #define MRQ_FAST      0x00C0    /* - Fast */
  67. #define MRQ_FOREGND   0x0F00    /* Foreground color mask */
  68. #define MRQ_BACKGND   0xF000    /* Background color mask */
  69.  
  70. /*═════════════════════════════════════════════════════════════════════════════╗
  71. ║                                                                              ║
  72. ║  Billboard Style Bits:                                                       ║
  73. ║                                                                              ║
  74. ╚═════════════════════════════════════════════════════════════════════════════*/
  75.  
  76. #define BRD_MODE      0x0003    /* Mode flags: */
  77. #define BRD_CENTER    0x0000    /* - Center */
  78. #define BRD_SCALE     0x0001    /* - Scale to fit */
  79. #define BRD_REPLICATE 0x0002    /* - Replicate */
  80. #define BRD_DIR       0x000C    /* Direction mask: */
  81. #define BRD_LEFT      0x0000    /* - right to left */
  82. #define BRD_RIGHT     0x0004    /* - left to right */
  83. #define BRD_TOP       0x0008    /* - bottom to top */
  84. #define BRD_BOTTOM    0x000C    /* - top to bottom */
  85. #define BRD_SPEED     0x0030    /* Speed mask: */
  86. #define BRD_STOPPED   0x0000    /* - Stopped */
  87. #define BRD_SLOW      0x0010    /* - Slow */
  88. #define BRD_MEDIUM    0x0020    /* - Medium */
  89. #define BRD_FAST      0x0030    /* - Fast */
  90. #define BRD_BUTTON    0x0080    /* Button */
  91.  
  92. /*═════════════════════════════════════════════════════════════════════════════╗
  93. ║                                                                              ║
  94. ║  Turtle Style Bits:                                                          ║
  95. ║                                                                              ║
  96. ╚═════════════════════════════════════════════════════════════════════════════*/
  97.  
  98. #define TUR_BUTTON    0x0001H   /* Is a button */
  99.  
  100. /*═════════════════════════════════════════════════════════════════════════════╗
  101. ║                                                                              ║
  102. ║  Bag Button Style Bits:                                                      ║
  103. ║                                                                              ║
  104. ╚═════════════════════════════════════════════════════════════════════════════*/
  105.  
  106. #define BAG_TYPE      0x0003      /* Button type mask: */
  107. #define BAG_BUTTON    0x0000      /* - Pushbutton */
  108. #define BAG_CLICKER   0x0001      /* - Clicker */
  109. #define BAG_CHECKBOX  0x0002      /* - Check box */
  110. #define BAG_RADIO     0x0003      /* - Radio button */
  111. #define BAG_RATE      0x000C      /* Clicker rate mask: */
  112. #define BAG_SLOW      0x0000      /* - Slow */
  113. #define BAG_MEDIUM    0x0004      /* - Medium */
  114. #define BAG_FAST      0x0008      /* - Fast */
  115. #define BAG_FASTEST   0x000C      /* - Fastest */
  116. #define BAG_LEFT      0x0010      /* Text is left aligned */
  117. #define BAG_RIGHT     0x0020      /* Text is right aligned */
  118. #define BAG_TOP       0x0040      /* Text is top aligned */
  119. #define BAG_BOTTOM    0x0080      /* Text is bottom aligned */
  120. #define BAG_SIZE      0x0300      /* Frame thickness mask */
  121. #define BAG_SHIFT     0x0C00      /* 'Bagged' window shift mask */
  122. #define BAG_LED       0x1000      /* LED should be drawn */
  123. #define BAG_LEDROUND  0x2000      /* LED should be round (not rectangular) */
  124. #define BAG_LEDCOLOR  0xC000      /* LED color mask: */
  125. #define BAG_LEDRED    0x0000      /* - Red */
  126. #define BAG_LEDGREEN  0x4000      /* - Green */
  127. #define BAG_LEDYELLOW 0x8000      /* - Yellow */
  128. #define BAG_LEDCYAN   0xC000      /* - Cyan */
  129.  
  130. /*═════════════════════════════════════════════════════════════════════════════╗
  131. ║                                                                              ║
  132. ║  DrDialog Initialization Routine:                                            ║
  133. ║                                                                              ║
  134. ╚═════════════════════════════════════════════════════════════════════════════*/
  135.  
  136. int UseDrDialog ( );
  137.