home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / FOXP-WIN.300 / DISK5 / VFP5.CAB / FOXPRO.H < prev    next >
Encoding:
Text File  |  1995-01-11  |  16.2 KB  |  403 lines

  1. ************************************************************************************
  2. ************************************************************************************
  3. **                                                                                **
  4. ** ================                    ===========                                **
  5. **   ==         ===                      ==       ==                              **
  6. **   ==           =                      ==        ==                             **
  7. **   ==                                  ==        ==                             **
  8. **   ==          ===      =====  =====   ==       ==  ===   ====         ===      **
  9. **   =====    ==     ==     ==    ==     =========      == ==   ==    ==     ==   **
  10. **   ==      ==       ==     ==  ==      ==             ===          ==       ==  **
  11. **   ==     ==         ==     ===        ==             ==          ==         == **
  12. **   ==      ==       ==     == ==       ==             ==           ==       ==  **
  13. **   ==       ==     ==     ==   ==      ==             ==            ==     ==   **
  14. ** =======       ===      =====  ====  ======         ======             ===      **
  15. **                                                                                **
  16. ************************************************************************************
  17. ************************************************************************************
  18.  
  19. ************************************************************************************
  20. ************************************************************************************
  21. **                                                                                **
  22. ** FoxPro Named Constant File                                                     **
  23. ** This file contains named constants for most FoxPro functions                   **
  24. ** that take a numeric argument to determine the function's behavior.             **
  25. **                                                                                **
  26. ************************************************************************************
  27. ************************************************************************************
  28.  
  29. *-- General
  30.  
  31. *-- DragOver
  32. #DEFINE DRAG_ENTER      0
  33. #DEFINE DRAG_LEAVE      1
  34. #DEFINE DRAG_OVER       2
  35.  
  36. *-- Drag (controls)
  37. #DEFINE CANCEL          0
  38. #DEFINE BEGIN_DRAG      1
  39. #DEFINE END_DRAG        2
  40.  
  41. *--ZOrder Method
  42. #DEFINE BRINGTOFRONT    0
  43. #DEFINE SENDTOBACK      1
  44.  
  45. * Key Codes (for INKEY(), LASTKEY())
  46. * << to be inserted >>
  47.  
  48. *-- TYPE() tags
  49. #DEFINE T_CHARACTER     C
  50. #DEFINE T_NUMERIC       N
  51. #DEFINE T_DOUBLE        B
  52. #DEFINE T_DATE          D
  53. #DEFINE T_DATETIME      T
  54. #DEFINE T_MEMO          M
  55. #DEFINE T_GENERAL       G
  56. #DEFINE T_OBJECT        O
  57. #DEFINE T_SCREEN        S
  58. #DEFINE T_LOGICAL       L
  59. #DEFINE T_CURRENCY      Y
  60. #DEFINE T_UNDEFINED     U
  61.  
  62. *-- QueryUnload
  63. #DEFINE FORM_CONTROLMENU        0
  64. #DEFINE FORM_CODE               1
  65. #DEFINE APP_WINDOWS             2
  66. #DEFINE APP_TASKMANAGER         3
  67. #DEFINE FORM_MDIFORM            4
  68.  
  69. *-- Properties
  70.  
  71. *-- Colors
  72. #DEFINE WHITE        16777215
  73. #DEFINE BLACK               0
  74. #DEFINE GRAY         12632256
  75. #DEFINE DARK_GRAY     8421504
  76. #DEFINE RED               255
  77. #DEFINE DARK_BLUE     8388608
  78. #DEFINE CYAN         16776960
  79. #DEFINE DARK_CYAN     8421376
  80. #DEFINE GREEN           65280
  81. #DEFINE DARK_GREEN      32768
  82. #DEFINE YELLOW          65535
  83. #DEFINE DARK_YELLOW     32896
  84. #DEFINE BLUE         16711680
  85. #DEFINE DARK_RED          128
  86. #DEFINE MAGENTA      16711935
  87. #DEFINE DARK_MAGENTA  8388736
  88.  
  89. *-- MousePointer
  90. #DEFINE MOUSE_DEFAULT           0       && 0 - Default
  91. #DEFINE MOUSE_ARROW             1       && 1 - Arrow
  92. #DEFINE MOUSE_CROSSHAIR         2       && 2 - Cross
  93. #DEFINE MOUSE_IBEAM             3       && 3 - I-Beam
  94. #DEFINE MOUSE_ICON_POINTER      4       && 4 - Icon
  95. #DEFINE MOUSE_SIZE_POINTER      5       && 5 - Size
  96. #DEFINE MOUSE_SIZE_NE_SW        6       && 6 - Size NE SW
  97. #DEFINE MOUSE_SIZE_N_S          7       && 7 - Size N S
  98. #DEFINE MOUSE_SIZE_NW_SE        8       && 8 - Size NW SE
  99. #DEFINE MOUSE_SIZE_W_E          9       && 9 - Size W E
  100. #DEFINE MOUSE_UP_ARROW          10      && 10 - Up Arrow
  101. #DEFINE MOUSE_HOURGLASS         11      && 11 - Hourglass
  102. #DEFINE MOUSE_NO_DROP           12      && 12 - No drop
  103.  
  104. *-- DragMode
  105. #DEFINE MANUAL          0       && 0 - Manual
  106. #DEFINE AUTOMATIC       1       && 1 - Automatic
  107.  
  108. *-- DrawMode
  109. #DEFINE BLACKNESS       1       && 1 - Blackness
  110. #DEFINE NOT_MERGE_PEN   2       && 2 - Not Merge Pen
  111. #DEFINE MASK_NOT_PEN    3       && 3 - Mask Not Pen
  112. #DEFINE NOT_COPY_PEN    4       && 4 - Not Copy Pen
  113. #DEFINE MASK_PEN_NOT    5       && 5 - Mask Pen Not
  114. #DEFINE INVERT          6       && 6 - Invert
  115. #DEFINE XOR_PEN         7       && 7 - Xor Pen
  116. #DEFINE NOT_MASK_PEN    8       && 8 - Not Mask Pen
  117. #DEFINE MASK_PEN        9       && 9 - Mask Pen
  118. #DEFINE NOT_XOR_PEN     10      && 10 - Not Xor Pen
  119. #DEFINE NOP             11      && 11 - Nop
  120. #DEFINE MERGE_NOT_PEN   12      && 12 - Merge Not Pen
  121. #DEFINE COPY_PEN        13      && 13 - Copy Pen
  122. #DEFINE MERGE_PEN_NOT   14      && 14 - Merge Pen Not
  123. #DEFINE MERGE_PEN       15      && 15 - Merge Pen
  124. #DEFINE WHITENESS       16      && 16 - Whiteness
  125.  
  126. *-- DrawStyle
  127. #DEFINE SOLID           0       && 0 - Solid
  128. #DEFINE DASH            1       && 1 - Dash
  129. #DEFINE DOT             2       && 2 - Dot
  130. #DEFINE DASH_DOT        3       && 3 - Dash-Dot
  131. #DEFINE DASH_DOT_DOT    4       && 4 - Dash-Dot-Dot
  132. #DEFINE INVISIBLE       5       && 5 - Invisible
  133. #DEFINE INSIDE_SOLID    6       && 6 - Inside Solid
  134.  
  135. *-- FillStyle
  136. #DEFINE SOLID                   0       && 0 - Solid
  137. #DEFINE TRANSPARENT             1       && 1 - Transparent
  138. #DEFINE HORIZONTAL_LINE         2       && 2 - Horizontal Line
  139. #DEFINE VERTICAL_LINE           3       && 3 - Vertical Line
  140. #DEFINE UPWARD_DIAGONAL         4       && 4 - Upward Diagonal
  141. #DEFINE DOWNWARD_DIAGONAL       5       && 5 - Downward Diagonal
  142. #DEFINE CROSS                   6       && 6 - Cross
  143. #DEFINE DIAGONAL_CROSS          7       && 7 - Diagonal Cross
  144.  
  145. *-- ScaleMode
  146. #DEFINE USER            0       && 0 - User
  147. #DEFINE TWIPS           1       && 1 - Twip
  148. #DEFINE POINTS          2       && 2 - Point
  149. #DEFINE PIXELS          3       && 3 - Pixel
  150. #DEFINE CHARACTERS      4       && 4 - Character
  151. #DEFINE INCHES          5       && 5 - Inch
  152. #DEFINE MILLIMETERS     6       && 6 - Millimeter
  153. #DEFINE CENTIMETERS     7       && 7 - Centimeter
  154. #DEFINE FOXELS          8       && 8 - Foxels
  155.  
  156. *-- WindowState
  157. #DEFINE NORMAL          0       && 0 - Normal
  158. #DEFINE MINIMIZED       1       && 1 - Minimized
  159. #DEFINE MAXIMIZED       2       && 2 - Maximized
  160.  
  161. *-- Window Borders
  162. #DEFINE BORDER_NONE     0
  163. #DEFINE BORDER_SINGLE   1
  164. #DEFINE BORDER_DOUBLE   2
  165. #DEFINE BORDER_SYSTEM   3
  166.  
  167. *-- Toolbar Positions
  168. #DEFINE TOOL_NOTDOCKED  -1
  169. #DEFINE TOOL_TOP        1
  170. #DEFINE TOOL_LEFT       2
  171. #DEFINE TOOL_RIGHT      3
  172. #DEFINE TOOL_BOTTOM     4
  173.  
  174. *-- Button parameter masks
  175. #DEFINE LEFT_BUTTON     1
  176. #DEFINE RIGHT_BUTTON    2
  177. #DEFINE MIDDLE_BUTTON   4
  178.  
  179. *-- Function Parameters
  180. *-- MessageBox parameters
  181. #DEFINE MB_OK                   0       && OK button only
  182. #DEFINE MB_OKCANCEL             1       && OK and Cancel buttons
  183. #DEFINE MB_ABORTRETRYIGNORE     2       && Abort, Retry, and Ignore buttons
  184. #DEFINE MB_YESNOCANCEL          3       && Yes, No, and Cancel buttons
  185. #DEFINE MB_YESNO                4       && Yes and No buttons
  186. #DEFINE MB_RETRYCANCEL          5       && Retry and Cancel buttons
  187.  
  188. #DEFINE MB_ICONSTOP             16      && Critical message
  189. #DEFINE MB_ICONQUESTION         32      && Warning query
  190. #DEFINE MB_ICONEXCLAMATION      48      && Warning message
  191. #DEFINE MB_ICONINFORMATION      64      && Information message
  192.  
  193. #DEFINE MB_APPLMODAL            0       && Application Modal Message Box
  194. #DEFINE MB_DEFBUTTON1           0       && First button is default
  195. #DEFINE MB_DEFBUTTON2           256     && Second button is default
  196. #DEFINE MB_DEFBUTTON3           512     && Third button is default
  197. #DEFINE MB_SYSTEMMODAL          4096    && System Modal
  198.  
  199. *-- MsgBox return values
  200. #DEFINE IDOK            1       &&  OK button pressed
  201. #DEFINE IDCANCEL        2       && Cancel button pressed
  202. #DEFINE IDABORT         3       && Abort button pressed
  203. #DEFINE IDRETRY         4       && Retry button pressed
  204. #DEFINE IDIGNORE        5       && Ignore button pressed
  205. #DEFINE IDYES           6       && Yes button pressed
  206. #DEFINE IDNO            7       && No button pressed
  207.  
  208. * Error Codes
  209. * << insert error codes here >>
  210.  
  211. *-- Low Level File Constants
  212. #DEFINE F_READONLY              0
  213. #DEFINE F_WRITEONLY             1
  214. #DEFINE F_READWRITE             2
  215. #DEFINE F_READONLY_UNBUFF       10
  216. #DEFINE F_WRITEONLY_UNBUFF      11
  217. #DEFINE F_READWRITE_UNBUFF      12
  218.  
  219. *-- PRTINFO() Constants
  220. *-- PRTINFO() Valid types to pass
  221. #DEFINE PRT_ORIENTATION         1
  222. #DEFINE PRT_PAPERSIZE           2
  223. #DEFINE PRT_PAPERLENGTH         3
  224. #DEFINE PRT_PAPERWIDTH          4
  225. #DEFINE PRT_SCALE               5
  226. #DEFINE PRT_COPIES              6
  227. #DEFINE PRT_DEFASOURCE          7
  228. #DEFINE PRT_PRINTQUAL           8
  229. #DEFINE PRT_COLOR               9
  230. #DEFINE PRT_DUPLEX              10
  231. #DEFINE PRT_YRESOLUTION         11
  232. #DEFINE PRT_TTOPTION            12
  233.  
  234. *--PRTINFO() Return types
  235. *-- Paper sizes
  236. #define PRTPAPER_LETTER      1       && Letter 8 1/2 x 11 in               
  237. #define PRTPAPER_LETTERSMALL 2       && Letter Small 8 1/2 x 11 in         
  238. #define PRTPAPER_TABLOID     3       && Tabloid 11 x 17 in                 
  239. #define PRTPAPER_LEDGER      4       && Ledger 17 x 11 in                  
  240. #define PRTPAPER_LEGAL       5       && Legal 8 1/2 x 14 in                
  241. #define PRTPAPER_STATEMENT   6       && Statement 5 1/2 x 8 1/2 in         
  242. #define PRTPAPER_EXECUTIVE   7       && Executive 7 1/4 x 10 1/2 in      
  243. #define PRTPAPER_A3          8       && A3 297 x 420 mm                    
  244. #define PRTPAPER_A4          9       && A4 210 x 297 mm                    
  245. #define PRTPAPER_A4SMALL     10      && A4 Small 210 x 297 mm              
  246. #define PRTPAPER_A5          11      && A5 148 x 210 mm                    
  247. #define PRTPAPER_B4          12      && B4 250 x 354                       
  248. #define PRTPAPER_B5          13      && B5 182 x 257 mm                    
  249. #define PRTPAPER_FOLIO       14      && Folio 8 1/2 x 13 in                
  250. #define PRTPAPER_QUARTO      15      && Quarto 215 x 275 mm                
  251. #define PRTPAPER_10X14       16      && 10x14 in                           
  252. #define PRTPAPER_11X17       17      && 11x17 in                           
  253. #define PRTPAPER_NOTE        18      && Note 8 1/2 x 11 in                 
  254. #define PRTPAPER_ENV_9       19      && Envelope #9 3 7/8 x 8 7/8          
  255. #define PRTPAPER_ENV_10      20      && Envelope #10 4 1/8 x 9 1/2         
  256. #define PRTPAPER_ENV_11      21      && Envelope #11 4 1/2 x 10 3/8        
  257. #define PRTPAPER_ENV_12      22      && Envelope #12 4 \276 x 11           
  258. #define PRTPAPER_ENV_14      23      && Envelope #14 5 x 11 1/2            
  259. #define PRTPAPER_CSHEET      24      && C size sheet                       
  260. #define PRTPAPER_DSHEET      25      && D size sheet                       
  261. #define PRTPAPER_ESHEET      26      && E size sheet                       
  262. #define PRTPAPER_ENV_DL      27      && Envelope DL 110 x 220mm            
  263. #define PRTPAPER_ENV_C5      28      && Envelope C5 162 x 229 mm           
  264. #define PRTPAPER_ENV_C3      29      && Envelope C3  324 x 458 mm          
  265. #define PRTPAPER_ENV_C4      30      && Envelope C4  229 x 324 mm          
  266. #define PRTPAPER_ENV_C6      31      && Envelope C6  114 x 162 mm          
  267. #define PRTPAPER_ENV_C65     32      && Envelope C65 114 x 229 mm          
  268. #define PRTPAPER_ENV_B4      33      && Envelope B4  250 x 353 mm          
  269. #define PRTPAPER_ENV_B5      34      && Envelope B5  176 x 250 mm          
  270. #define PRTPAPER_ENV_B6      35      && Envelope B6  176 x 125 mm          
  271. #define PRTPAPER_ENV_ITALY   36      && Envelope 110 x 230 mm              
  272. #define PRTPAPER_ENV_MONARCH 37      && Envelope Monarch 3.875 x 7.5 in    
  273. #define PRTPAPER_ENV_PERSONAL 38     && 6 3/4 Envelope 3 5/8 x 6 1/2 in    
  274. #define PRTPAPER_FANFOLD_US  39      && US Std Fanfold 14 7/8 x 11 in      
  275. #define PRTPAPER_FANFOLD_STD_GERMAN  40 && German Std Fanfold 8 1/2 x 12 in   
  276. #define PRTPAPER_FANFOLD_LGL_GERMAN  41 && German Legal Fanfold 8 1/2 x 13 in 
  277.  
  278. *-- Paper bins
  279. #define PRTBIN_UPPER            1
  280. #define PRTBIN_ONLYONE          1
  281. #define PRTBIN_LOWER            2
  282. #define PRTBIN_MIDDLE           3
  283. #define PRTBIN_MANUAL           4
  284. #define PRTBIN_ENVELOPE         5
  285. #define PRTBIN_ENVMANUAL        6
  286. #define PRTBIN_AUTO             7
  287. #define PRTBIN_TRACTOR          8
  288. #define PRTBIN_SMALLFMT         9
  289. #define PRTBIN_LARGEFMT         10
  290. #define PRTBIN_LARGECAPACITY    11
  291. #define PRTBIN_CASSETTE         14
  292.  
  293. *-- Print qualities
  294. #define PRTRES_DRAFT        -1
  295. #define PRTRES_LOW          -2
  296. #define PRTRES_MEDIUM       -3
  297. #define PRTRES_HIGH         -4
  298.  
  299. *-- Color printer
  300. #define PRTCOLOR_MONOCHROME  1
  301. #define PRTCOLOR_COLOR       2
  302.  
  303. *-- Duplexing
  304. #define PRTDUP_SIMPLEX    1
  305. #define PRTDUP_VERTICAL   2
  306. #define PRTDUP_HORIZONTAL 3
  307.  
  308. *-- True Type fonts
  309. #define PRTTT_BITMAP     1  && Print True Type fonts as graphics
  310. #define PRTTT_DOWNLOAD   2  && Download True Type fonts as soft fonts
  311. #define PRTTT_SUBDEV     3  && Substitute device fonts for True Type
  312.  
  313. *-- FontMetric()
  314. #DEFINE TM_HEIGHT           1
  315. #DEFINE TM_ASCENT           2
  316. #DEFINE TM_DESCENT          3
  317. #DEFINE TM_INTERNALLEADING  4
  318. #DEFINE TM_EXTERNALLEADING  5
  319. #DEFINE TM_AVECHARWIDTH     6
  320. #DEFINE TM_MAXCHARWIDTH     7
  321. #DEFINE TM_WEIGHT           8
  322. #DEFINE TM_ITALIC           9
  323. #DEFINE TM_UNDERLINED      10
  324. #DEFINE TM_STRUCKOUT       11
  325. #DEFINE TM_FIRSTCHAR       12
  326. #DEFINE TM_LASTCHAR        13
  327. #DEFINE TM_DEFAULTCHAR     14
  328. #DEFINE TM_BREAKCHAR       15
  329. #DEFINE TM_PITCHANDFAMILY  16
  330. #DEFINE TM_CHARSET         17
  331. #DEFINE TM_OVERHANG        18
  332. #DEFINE TM_ASPECTX         19
  333. #DEFINE TM_ASPECTY         20
  334.  
  335. *-- SysMetric()
  336. #DEFINE SM_CXSCREEN             0
  337. #DEFINE SM_CYSCREEN             1
  338. #DEFINE SM_CXVSCROLL            2
  339. #DEFINE SM_CYHSCROLL            3
  340. #DEFINE SM_CYCAPTION            4
  341. #DEFINE SM_CXBORDER             5
  342. #DEFINE SM_CYBORDER             6
  343. #DEFINE SM_CXDLGFRAME           7
  344. #DEFINE SM_CYDLGFRAME           8
  345. #DEFINE SM_CYVTHUMB             9
  346. #DEFINE SM_CXHTHUMB             10
  347. #DEFINE SM_CXICON               11
  348. #DEFINE SM_CYICON               12
  349. #DEFINE SM_CXCURSOR             13
  350. #DEFINE SM_CYCURSOR             14
  351. #DEFINE SM_CYMENU               15
  352. #DEFINE SM_CXFULLSCREEN         16
  353. #DEFINE SM_CYFULLSCREEN         17
  354. #DEFINE SM_CYKANJIWINDOW        18
  355. #DEFINE SM_MOUSEPRESENT         19
  356. #DEFINE SM_CYVSCROLL            20
  357. #DEFINE SM_CXHSCROLL            21
  358. #DEFINE SM_DEBUG                22
  359. #DEFINE SM_SWAPBUTTON           23
  360. #DEFINE SM_RESERVED1            24
  361. #DEFINE SM_RESERVED2            25
  362. #DEFINE SM_RESERVED3            26
  363. #DEFINE SM_RESERVED4            27
  364. #DEFINE SM_CXMIN                28
  365. #DEFINE SM_CYMIN                29
  366. #DEFINE SM_CXSIZE               30
  367. #DEFINE SM_CYSIZE               31
  368. #DEFINE SM_CXFRAME              32
  369. #DEFINE SM_CYFRAME              33
  370. #DEFINE SM_CXMINTRACK           34
  371. #DEFINE SM_CYMINTRACK           35
  372. #DEFINE SM_CMETRICS             36
  373.  
  374. *-- Cursor buffering modes
  375. #DEFINE DB_BUFOFF               1
  376. #DEFINE DB_BUFLOCKRECORD        2
  377. #DEFINE DB_BUFOPTRECORD         3        
  378. #DEFINE DB_BUFLOCKTABLE         4
  379. #DEFINE DB_BUFOPTTABLE          5
  380.  
  381. *-- Update types for views/cursors
  382. #DEFINE DB_DELETEINSERT         1
  383. #DEFINE DB_UPDATE               2
  384.  
  385. *-- WHERE clause types for views/cursors
  386. #DEFINE DB_KEY                  1
  387. #DEFINE DB_KEYANDUPDATABLE      2
  388. #DEFINE DB_KEYANDMODIFIED       3
  389. #DEFINE DB_KEYANDTIMESTAMP      4
  390.  
  391. *-- Remote connection login prompt options
  392. #DEFINE DB_PROMPTCOMPLETE       1
  393. #DEFINE DB_PROMPTALWAYS         2
  394. #DEFINE DB_PROMPTNEVER          3
  395.  
  396. *-- Remote transaction modes
  397. #DEFINE DB_TRANSAUTO            1
  398. #DEFINE DB_TRANSMANUAL          2
  399.  
  400. #DEFINE DB_SRCLOCALVIEW         1
  401. #DEFINE DB_SRCREMOTEVIEW        2
  402. #DEFINE DB_SRCTABLE             3
  403.