home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l391_1 / 2.ddi / CONSTANT.BI$ / CONSTANT.bin
Encoding:
Text File  |  1992-08-19  |  9.8 KB  |  264 lines

  1. ' ------------------------------------------------------------------------
  2. ' Visual Basic for MS-DOS Constant Include File
  3. '
  4. ' Include file that contains constant definitions
  5. ' for enumerated form or control property values and
  6. ' event procedure, method, and function parameter values.
  7. ' This file can be included and used as is in your applications.
  8. ' Each constant definition reduces the amount of memory available
  9. ' for your application, however, so for best results, include only 
  10. ' those constant definitions you plan to use in your application.
  11. ' In addition, some of the constant definitions below may conflict with
  12. ' variable definitions in your existing programs. 
  13. ' Some constants below are commented out because they
  14. ' have duplicates (for example, NONE appears in several
  15. ' places).
  16. '
  17. ' Copyright (C) 1982-1992 Microsoft Corporation
  18. '
  19. ' You have a royalty-free right to use, modify, reproduce
  20. ' and distribute the sample applications and toolkits provided with
  21. ' Visual Basic for MS-DOS (and/or any modified version)
  22. ' in any way you find useful, provided that you agree that
  23. ' Microsoft has no warranty, obligations or liability for
  24. ' any of the sample applications or toolkits.
  25. ' ------------------------------------------------------------------------
  26.  
  27.  
  28. ' -------
  29. ' General
  30. ' -------
  31.  
  32. ' Booleans
  33. CONST TRUE = -1
  34. CONST FALSE = 0
  35.  
  36. ' ----------------
  37. ' Event parameters
  38. ' ----------------
  39.  
  40. ' Button and Shift (KeyDown, KeyUp, MouseDown, MouseMove, MouseUp)
  41. CONST SHIFT_MASK = 1
  42. CONST CTRL_MASK = 2
  43. CONST ALT_MASK = 4
  44. CONST LEFT_BUTTON = 1
  45. CONST RIGHT_BUTTON = 2
  46.  
  47. ' KeyCode (KeyDown, KeyUp)
  48. CONST KEY_BACK = 8
  49. CONST KEY_TAB = 9
  50. CONST KEY_CLEAR = 12
  51. CONST KEY_RETURN = 13           ' Enter key
  52. CONST KEY_SHIFT = 16
  53. CONST KEY_CONTROL = 17
  54. CONST KEY_MENU = 18             ' Alt key
  55. CONST KEY_PAUSE = 19
  56. CONST KEY_CAPITAL = 20          ' Caps lock key
  57. CONST KEY_ESCAPE = 27
  58. CONST KEY_SPACE = 32
  59. CONST KEY_PRIOR = 33            ' Page up key
  60. CONST KEY_NEXT = 34             ' Page down key
  61. CONST KEY_END = 35
  62. CONST KEY_HOME = 36
  63. CONST KEY_LEFT = 37
  64. CONST KEY_UP = 38
  65. CONST KEY_RIGHT = 39
  66. CONST KEY_DOWN = 40
  67. CONST KEY_SELECT = 41
  68. CONST KEY_PRINT = 42
  69. CONST KEY_EXECUTE = 43
  70. CONST KEY_SNAPSHOT = 44
  71. CONST KEY_INSERT = 45
  72. CONST KEY_DELETE = 127          ' Delete key returns 46 in Visual Basic for Windows.
  73. CONST KEY_HELP = 47
  74.  
  75. ' KeyCode parameter in KeyDown and KeyUp event procedures
  76. ' returns the same value as KeyAscii in the KeyPress event 
  77. ' procedure for keys corresponding to ASCII printable 
  78. ' characters (A-Z, a-z, 0-9, ~,[,],{,},+,=, etc).  Return 
  79. ' values will be the ASCII value of the character (see 
  80. ' ASCII Character Codes topic in Help).  Extended ASCII
  81. ' characters can be returned via KeyCode and KeyAscii
  82. ' by holding down the ALT key, entering the ASCII number
  83. ' of the extended ASCII character, then releasing the
  84. ' ALT key.  Note, the NumLock key must be on if the numeric
  85. ' keypad is used.
  86.  
  87. CONST KEY_NUMPAD0 = 48
  88. CONST KEY_NUMPAD1 = 49
  89. CONST KEY_NUMPAD2 = 50
  90. CONST KEY_NUMPAD3 = 51
  91. CONST KEY_NUMPAD4 = 52
  92. CONST KEY_NUMPAD5 = 53
  93. CONST KEY_NUMPAD6 = 54
  94. CONST KEY_NUMPAD7 = 55
  95. CONST KEY_NUMPAD8 = 56
  96. CONST KEY_NUMPAD9 = 57
  97. CONST KEY_MULTIPLY = 42
  98. CONST KEY_ADD = 43
  99. CONST KEY_SUBTRACT = 45
  100. CONST KEY_DECIMAL = 46
  101. CONST KEY_DIVIDE = 47
  102. CONST KEY_F1 = 112
  103. CONST KEY_F2 = 113
  104. CONST KEY_F3 = 114
  105. CONST KEY_F4 = 115
  106. CONST KEY_F5 = 116
  107. CONST KEY_F6 = 117
  108. CONST KEY_F7 = 118
  109. CONST KEY_F8 = 119
  110. CONST KEY_F9 = 120
  111. CONST KEY_F10 = 121
  112. CONST KEY_F11 = 122
  113. CONST KEY_F12 = 123
  114. CONST KEY_NUMLOCK = 144
  115. CONST KEY_SCRLOCK = 145
  116.  
  117. ' State (DragOver)
  118. CONST ENTER = 0
  119. CONST LEAVE = 1
  120. CONST OVER = 2
  121.  
  122. ' -------------------
  123. ' Function parameters
  124. ' -------------------
  125.  
  126. ' MSGBOX parameters
  127. CONST MB_OK = 0                         ' OK button only
  128. CONST MB_OKCANCEL = 1                   ' OK and Cancel buttons
  129. CONST MB_ABORTRETRYIGNORE = 2           ' Abort, Retry, and Ignore buttons
  130. CONST MB_YESNOCANCEL = 3                ' Yes, No, and Cancel buttons
  131. CONST MB_YESNO = 4                      ' Yes and No buttons
  132. CONST MB_RETRYCANCEL = 5                ' Retry and Cancel buttons
  133.  
  134. CONST MB_DEFBUTTON1 = 0                 ' First button is default
  135. CONST MB_DEFBUTTON2 = 256               ' Second button is default
  136. CONST MB_DEFBUTTON3 = 512               ' Third button is default
  137.  
  138. ' MSGBOX return values
  139. CONST IDOK = 1                          ' OK button pressed
  140. CONST IDCANCEL = 2                      ' Cancel button pressed
  141. CONST IDABORT = 3                       ' Abort button pressed
  142. CONST IDRETRY = 4                       ' Retry button pressed
  143. CONST IDIGNORE = 5                      ' Ignore button pressed
  144. CONST IDYES = 6                         ' Yes button pressed
  145. CONST IDNO = 7                          ' No button pressed
  146.  
  147.  
  148. ' -----------------
  149. ' Method parameters
  150. ' -----------------
  151.  
  152. ' DRAG (controls)
  153. CONST CANCEL_DRAG = 0
  154. CONST BEGIN_DRAG = 1
  155. CONST END_DRAG = 2
  156.  
  157. ' SHOW (form)
  158. CONST MODELESS = 0
  159. CONST MODAL = 1
  160.  
  161. ' ---------------
  162. ' Property values
  163. ' ---------------
  164.  
  165. ' Alignment (label)
  166. CONST LEFT_JUSTIFY = 0                  ' 0 - Left Justify
  167. CONST RIGHT_JUSTIFY = 1                 ' 1 - Right Justify
  168. CONST CENTER = 2                        ' 2 - Center
  169.  
  170. ' BackColor, ForeColor (form, controls)
  171. CONST BLACK = 0
  172. CONST BLUE = 1
  173. CONST GREEN = 2
  174. CONST CYAN = 3
  175. CONST RED = 4
  176. CONST MAGENTA = 5
  177. CONST BROWN = 6
  178. CONST WHITE = 7
  179. CONST GRAY = 8
  180. CONST BRIGHT_BLUE = 9
  181. CONST BRIGHT_GREEN = 10
  182. CONST BRIGHT_CYAN = 11
  183. CONST BRIGHT_RED = 12
  184. CONST PINK = 13
  185. CONST YELLOW = 14
  186. CONST BRIGHT_WHITE = 15
  187.  
  188. ' BorderStyle (form)
  189. CONST NONE = 0                          ' 0 - None
  190. CONST FIXED_SINGLE = 1                  ' 1 - Fixed Single
  191. CONST SIZABLE_SINGLE = 2                ' 2 - Sizable Single
  192. CONST FIXED_DOUBLE = 3                  ' 3 - Fixed Double
  193. CONST SIZABLE_DOUBLE = 4                ' 4 - Sizable Double
  194. CONST FIXED_SOLID = 5                   ' 5 - Fixed Solid
  195. CONST SIZABLE_SOLID = 6                 ' 6 - Sizable Solid
  196.  
  197. ' BorderStyle (label, picture box, text box)
  198. ' CONST NONE = 0                        ' 0 - None
  199. CONST SINGLE_LINE = 1                   ' 1 - Single Line
  200. CONST DOUBLE_LINE = 2                   ' 2 - Double Line (label and picture box only)
  201.  
  202. ' DragMode (controls)
  203. CONST MANUAL = 0                        ' 0 - Manual
  204. CONST AUTOMATIC = 1                     ' 1 - Automatic
  205.  
  206. ' FormType (form - Multiple Document Interface (MDI) vs Single Document Interface (SDI) applications)
  207. CONST NORMAL = 0                        ' 0 - Normal (Normal form in SDI applications, 
  208.                                         '     child form in MDI applications)
  209. CONST MDI = 1                           ' 1 - MDI (Container form in MDI application)
  210.  
  211. ' MousePointer (form, controls)
  212. CONST DEFAULT = 0                       ' 0 - Default (Same MousePointer as container object's MousePointer)
  213. CONST BLOCK = 1                         ' 1 - Block (ASCII 219)
  214. CONST CROSSHAIR = 2                     ' 2 - Cross (ASCII 197)
  215. CONST IBEAM = 3                         ' 3 - I-Beam (ASCII 73)
  216. CONST ICON = 4                          ' 4 - Icon (ASCII 002)
  217. CONST SIZE_POINTER = 5                  ' 5 - Size (ASCII 015)
  218. CONST LEFT_ARROW = 6                    ' 6 - Left Arrow (ASCII 027)
  219. CONST SIZE_N_S = 7                      ' 7 - Size North South (ASCII 018)
  220. CONST RIGHT_ARROW = 8                   ' 8 - Right Arrow (ASCII 026)
  221. CONST SIZE_W_E = 9                      ' 9 - Size West East (ASCII 029)
  222. CONST UP_ARROW = 10                     ' 10 - Up Arrow (ASCII 024)
  223. CONST HOURGLASS = 11                    ' 11 - Hourglass (ASCII 088)
  224. CONST DOWN_ARROW = 12                   ' 12 - Down Arrow (ASCII 025)
  225.  
  226. ' ScrollBar (text box)
  227. ' CONST NONE = 0                        ' 0 - None
  228. CONST HORIZONTAL = 1                    ' 1 - Horizontal
  229. CONST VERTICAL = 2                      ' 2 - Vertical
  230. CONST BOTH = 3                          ' 3 - Both
  231.  
  232. ' Value (check box)
  233. CONST UNCHECKED = 0                     ' 0 - Unchecked
  234. CONST CHECKED = 1                       ' 1 - Checked
  235. CONST GRAYED = 2                        ' 2 - Grayed
  236.  
  237. ' WindowState (form)
  238. ' CONST NORMAL = 0                        ' 0 - Normal
  239. CONST MINIMIZED = 1                     ' 1 - Minimized
  240. CONST MAXIMIZED = 2                     ' 2 - Maximized
  241.  
  242. ' SCREEN.ControlPanel array elements
  243. CONST ACCESSKEY_FORECOLOR = 0           ' Access key foreground color (0-15).
  244. CONST ACTIVE_BORDER_BACKCOLOR = 1       ' Active border background color (0-15).
  245. CONST ACTIVE_BORDER_FORECOLOR = 2       ' Active border foreground color (0-15).
  246. CONST ACTIVE_WINDOW_SHADOW = 3          ' Active window shadow effect (Boolean).
  247. CONST COMBUTTON_FORECOLOR = 4           ' Command button foreground color (0-15).
  248. CONST DESKTOP_BACKCOLOR = 5             ' Desktop background color (0-15).
  249. CONST DESKTOP_FORECOLOR = 6             ' Desktop foreground color (0-15).
  250. CONST DESKTOP_PATTERN = 7               ' Desktop fill pattern (ASCII 0-255).
  251. CONST DISABLED_ITEM_FORECOLOR = 8       ' Disabled menu/dialog item foreground color (0-15).
  252. CONST MENU_BACKCOLOR = 9                ' Menu background color (0-15).
  253. CONST MENU_FORECOLOR = 10               ' Menu foreground color (0-15).
  254. CONST MENU_SELECTED_BACKCOLOR = 11      ' Menu selected item background color (0-15).
  255. CONST MENU_SELECTED_FORECOLOR = 12      ' Menu selected item foreground color (0-15).
  256. CONST SCROLLBAR_BACKCOLOR = 13          ' Scrollbar background color (0-15).
  257. CONST SCROLLBAR_FORECOLOR = 14          ' Scrollbar foreground color (0-15).
  258. CONST THREE_D = 15                      ' 3-D effect for controls with borders (Boolean).
  259. CONST TITLEBAR_BACKCOLOR = 16           ' Titlebar background color (0-15).
  260. CONST TITLEBAR_FORECOLOR = 17           ' Titlebar foreground color (0-15).
  261.  
  262.