home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / BASIC / VXBASE / VXBTEST.BAS < prev    next >
BASIC Source File  |  1993-12-01  |  23KB  |  479 lines

  1. ' vxBase Sample Application
  2. ' Aircraft Brokerage System
  3. ' ------------------------
  4.  
  5. ' Declare file select areas as Global
  6. ' so they can be accessed from any form
  7. ' -------------------------------------
  8. Global AirtypesDbf As Integer
  9. Global AirTypesNtx As Integer
  10. Global AircustDbf As Integer
  11. Global Aircust1Ntx As Integer
  12. Global Aircust2Ntx As Integer
  13. Global Aircust3Ntx As Integer
  14. Global AirstateDbf As Integer
  15. Global Airstat1Ntx As Integer
  16. Global Airstat2Ntx As Integer
  17. Global AirbuyerDbf As Integer
  18. Global Airbuy1Ntx As Integer
  19. Global Airbuy2Ntx As Integer
  20. Global AircraftDbf As Integer
  21. Global Aircraf1Ntx As Integer
  22. Global Aircraf2Ntx As Integer
  23.  
  24. ' vars for each browse return so other forms can interrogate
  25. ' ----------------------------------------------------------
  26. Global TypeReturn As Long
  27. Global CustReturn As Long
  28. Global BuyerReturn As Long
  29. Global AircraftReturn As Long
  30. Global StateReturn As Long
  31.  
  32. ' vars to hold internal linkage keys
  33. ' ----------------------------------
  34. Global CustKey As String
  35. Global TypeKey As String
  36. Global BuyerRec As Long
  37.  
  38. ' Form active vars so we can test if any active
  39. ' when we close the system down in vxform1
  40. ' ----------------------------------------------
  41. Global Form2Active As Integer
  42. Global Form3Active As Integer
  43. Global Form4Active As Integer
  44. Global Form5Active As Integer
  45. Global Form6Active As Integer
  46. Global Form7Active As Integer
  47.  
  48. ' Define some WINAPI stuff to limit text length and change cursors
  49. ' ----------------------------------------------------------------
  50. Declare Function GetFocus% Lib "user" ()
  51. Declare Function SetFocusApi Lib "user" Alias "SetFocus" (ByVal Hwnd As Integer) As Integer
  52. Declare Function SendMessage& Lib "user" (ByVal Hwnd%, ByVal wMsg%, ByVal wParam%, ByVal lParam&)
  53. Global Const WM_USER = &H400
  54. Global Const EM_LIMITTEXT = WM_USER + 21
  55. Global Const WM_CLOSE = &H10
  56.  
  57. Declare Function LoadCursor Lib "user" (ByVal hInstance As Integer, ByVal CursorName As Long) As Integer
  58. Declare Function SetCursor Lib "user" (ByVal hCursor As Integer) As Integer
  59. Global Const IDC_WAIT = 32514&
  60. Global Const IDC_ARROW = 32512&
  61.  
  62. ' winapi stuff to limit to a single app or to get browse handle
  63. ' -------------------------------------------------------------
  64. Declare Function FindWindow Lib "user" (ByVal ClassName As Any, ByVal Caption As Any) As Integer
  65.  
  66. ' ----------------------------------------------
  67. ' vxBase.txt contains the necessary declarations
  68. ' to run vxBase from Visual Basic
  69. ' ----------------------------------------------
  70. ' vxBase Global Constants
  71. ' -----------------------
  72. Global Const BROWSE_CLOSED = -1
  73. Global Const BROWSE_EDIT = -2
  74. Global Const BROWSE_ADD = -3
  75. Global Const BROWSE_DELETE = -4
  76. Global Const BROWSE_ERROR = -5
  77. Global Const BROWSE_USER = -6
  78.  
  79. ' vxBase Color References for user tables
  80. ' ---------------------------------------
  81. Global Const VX_RED = &HFF
  82. Global Const VX_BLUE = &HFF0000
  83. Global Const VX_GRAY = &HC0C0C0
  84.  
  85. ' vxBase Control style modes
  86. ' --------------------------
  87. Global Const VX_RAISE = 0
  88. Global Const VX_RECESS = 1
  89. Global Const VX_CREASE = 2
  90.  
  91. ' vxBase Table Field Types
  92. ' ------------------------
  93. Global Const VX_FIELD = 0
  94. Global Const VX_EXPR = 1
  95.  
  96. ' browse case types
  97. ' -----------------
  98. Global Const VX_UPPER = 0
  99. Global Const VX_LOWER = 1
  100.  
  101. ' vxBase Menu item identifiers
  102. ' ----------------------------
  103. Global Const VX_SEPBAR = 2
  104. Global Const VX_MENUHEAD = 1
  105. Global Const VX_RETURN = 0
  106.  
  107. ' Country specific identifiers
  108. ' ----------------------------
  109. Global Const VX_ENGLISH = 0
  110. Global Const VX_AMERICAN = 0
  111. Global Const VX_ANSI = 1
  112. Global Const VX_BRITISH = 2
  113. Global Const VX_FRENCH = 3
  114. Global Const VX_GERMAN = 4
  115. Global Const VX_ITALIAN = 5
  116. Global Const VX_DUTCH = 6
  117. Global Const VX_SPANISH = 7
  118.  
  119. ' vxBase CALLed Sub Procedures
  120. ' ----------------------------
  121. Declare Sub vxBrowse Lib "vxbase.dll" (ByVal Hwnd%, ByVal DbfArea%, ByVal NtxArea%, ByVal EditMode%, ByVal AllowFilter%, ByVal EditMenu%, ByVal StartRec&, ByVal Caption$, RetVal&)
  122. Declare Sub vxBrowseCase Lib "vxbase.dll" (ByVal DefCase As Integer)
  123. Declare Sub vxBrowsePos Lib "vxbase.dll" (ByVal StartX As Integer, ByVal StartY As Integer, ByVal xWidth As Integer, ByVal yHeight As Integer)
  124. Declare Sub vxCtlGrayReset Lib "vxbase.dll" ()
  125. Declare Sub vxCtlGraySet Lib "vxbase.dll" ()
  126. Declare Sub vxCtlLength Lib "vxbase.dll" (ByVal FieldName As String)
  127. Declare Sub vxCtlStyle Lib "vxbase.dll" (CtlName As Any, ByVal Mode As Integer)
  128. Declare Sub vxDouble Lib "vxbase.dll" (ByVal FieldName As String, DblAmount As Double)
  129. Declare Sub vxExactOff Lib "vxbase.dll" ()
  130. Declare Sub vxExactOn Lib "vxbase.dll" ()
  131. Declare Sub vxFilter Lib "vxbase.dll" (ByVal FilterString As String)
  132. Declare Sub vxFilterReset Lib "vxbase.dll" ()
  133. Declare Sub vxFormFrame Lib "vxbase.dll" (ByVal Hwnd As Integer)
  134. Declare Sub vxInit Lib "vxbase.dll" ()
  135. Declare Sub vxJoin Lib "vxbase.dll" (ByVal DbfArea As Integer, ByVal NtxArea As Integer, ByVal JoinExpr As String, ByVal KeyType As Integer, ByVal JoinTitle As String)
  136. Declare Sub vxJoinNoAuto Lib "vxbase.dll" ()
  137. Declare Sub vxJoinReset Lib "vxbase.dll" ()
  138. Declare Sub vxMemoEdit Lib "vxbase.dll" (ByVal Hwnd As Integer, ByVal FieldName As String)
  139. Declare Sub vxMenuDeclare Lib "vxbase.dll" (ByVal NumItems As Integer)
  140. Declare Sub vxMenuItem Lib "vxbase.dll" (ByVal MenuIndex As Integer, ByVal MenuLev As Integer, ByVal MenuString As String, ByVal MenuType As Integer)
  141. Declare Sub vxReplDate Lib "vxbase.dll" (ByVal FieldName As String, ByVal DateString As String)
  142. Declare Sub vxReplDouble Lib "vxbase.dll" (ByVal FieldName As String, DblAmount As Double)
  143. Declare Sub vxReplInteger Lib "vxbase.dll" (ByVal FieldName As String, IntAmount As Integer)
  144. Declare Sub vxReplLogical Lib "vxbase.dll" (ByVal FieldName As String, ByVal BoolVal As Integer)
  145. Declare Sub vxReplLong Lib "vxbase.dll" (ByVal FieldName As String, LongInt As Long)
  146. Declare Sub vxReplString Lib "vxbase.dll" (ByVal FieldName As String, ByVal FieldString As String)
  147. Declare Sub vxSetDate Lib "vxbase.dll" (ByVal DateType As Integer)
  148. Declare Sub vxSetErrorCaption Lib "vxbase.dll" (ByVal CaptionString As String)
  149. Declare Sub vxSetLanguage Lib "vxbase.dll" (ByVal LangType As Integer)
  150. Declare Sub vxSetupPrinter Lib "vxbase.dll" (ByVal Hwnd As Integer)
  151. Declare Sub vxSum Lib "vxbase.dll" (ByVal FieldName As String, DblAmount As Double)
  152. Declare Sub vxTableDeclare Lib "vxbase.dll" (ByVal ColorRef&, BofExpr As Any, EofExpr As Any, ByVal Scope%, ByVal Quick%, ByVal Columns%)
  153. Declare Sub vxTableField Lib "vxbase.dll" (ByVal ColIndex As Integer, ByVal ColHead As String, ByVal ColExpr As String, ByVal ColType As Integer)
  154. Declare Sub vxTableReset Lib "vxbase.dll" ()
  155. Declare Sub vxWindowDereg Lib "vxbase.dll" (ByVal Hwnd As Integer)
  156.  
  157.  
  158. ' vxBase Functions
  159. ' ----------------
  160. Declare Function vxAppendBlank Lib "vxbase.dll" () As Integer
  161. Declare Function vxAppendFrom Lib "vxbase.dll" (ByVal FromFile As String) As Integer
  162. Declare Function vxAreaDbf Lib "vxbase.dll" (ByVal DbfName As String) As Integer
  163. Declare Function vxAreaNtx Lib "vxbase.dll" (ByVal NtxName As String) As Integer
  164. Declare Function vxBof Lib "vxbase.dll" () As Integer
  165. Declare Function vxBottom Lib "vxbase.dll" () As Integer
  166. Declare Function vxChar Lib "vxbase.dll" (ByVal FieldName As String) As String
  167. Declare Function vxClose Lib "vxbase.dll" () As Integer
  168. Declare Function vxCloseAll Lib "vxbase.dll" () As Integer
  169. Declare Function vxCloseNtx Lib "vxbase.dll" (ByVal NtxArea As Integer) As Integer
  170. Declare Function vxCopy Lib "vxbase.dll" (ByVal NewDbfName As String) As Integer
  171. Declare Function vxCopyStruc Lib "vxbase.dll" (ByVal NewDbfName As String) As Integer
  172. Declare Function vxCreateNtx Lib "vxbase.dll" (ByVal NewNtxName As String, ByVal NtxExpr As String) As Integer
  173. Declare Function vxDateFormat Lib "vxbase.dll" (ByVal DateField As String) As String
  174. Declare Function vxDateString Lib "vxbase.dll" (ByVal DateField As String, ByVal DateType As Integer) As String
  175. Declare Function vxDbfDate Lib "vxbase.dll" () As String
  176. Declare Function vxDbfName Lib "vxbase.dll" () As String
  177. Declare Function vxDeallocate Lib "vxbase.dll" () As Integer
  178. Declare Function vxDecimals Lib "vxbase.dll" (ByVal FieldName As String) As Integer
  179. Declare Function vxDeleted Lib "vxbase.dll" () As Integer
  180. Declare Function vxDeleteRange Lib "vxbase.dll" (ByVal StartRec As Long, ByVal EndRec As Long) As Integer
  181. Declare Function vxDeleteRec Lib "vxbase.dll" () As Integer
  182. Declare Function vxDescend Lib "vxbase.dll" (ByVal KeyString As String) As String
  183. Declare Function vxEmpty Lib "vxbase.dll" (ByVal FieldName As String) As Integer
  184. Declare Function vxEof Lib "vxbase.dll" () As Integer
  185. Declare Function vxField Lib "vxbase.dll" (ByVal FieldName As String) As String
  186. Declare Function vxFieldCount Lib "vxbase.dll" () As Integer
  187. Declare Function vxFieldName Lib "vxbase.dll" (ByVal FieldNumber As Integer) As String
  188. Declare Function vxFieldSize Lib "vxbase.dll" (ByVal FieldName As String) As Integer
  189. Declare Function vxFieldType Lib "vxbase.dll" (ByVal FieldName As String) As String
  190. Declare Function vxFile Lib "vxbase.dll" (ByVal FileName As String) As Integer
  191. Declare Function vxFound Lib "vxbase.dll" () As Integer
  192. Declare Function vxGo Lib "vxbase.dll" (ByVal RecNum As Long) As Integer
  193. Declare Function vxInteger Lib "vxbase.dll" (ByVal FieldName As String) As Integer
  194. Declare Function vxIsMemo Lib "vxbase.dll" (ByVal MemoFieldName As String) As Integer
  195. Declare Function vxIsRecLocked Lib "vxbase.dll" () As Integer
  196. Declare Function vxLockDbf Lib "vxbase.dll" () As Integer
  197. Declare Function vxLocked Lib "vxbase.dll" () As Integer
  198. Declare Function vxLockRecord Lib "vxbase.dll" () As Integer
  199. Declare Function vxLong Lib "vxbase.dll" (ByVal FieldName As String) As Long
  200. Declare Function vxMemoRead Lib "vxbase.dll" (ByVal FieldName As String, ByVal LineWidth As Integer) As String
  201. Declare Function vxNtxDeselect Lib "vxbase.dll" () As Integer
  202. Declare Function vxNtxExpr Lib "vxbase.dll" (ByVal NtxArea As Integer) As String
  203. Declare Function vxNtxName Lib "vxbase.dll" (ByVal NtxArea As Integer) As String
  204. Declare Function vxNumRecs Lib "vxbase.dll" () As Long
  205. Declare Function vxPack Lib "vxbase.dll" (ByVal Hwnd As Integer) As Integer
  206. Declare Function vxRecall Lib "vxbase.dll" () As Integer
  207. Declare Function vxRecNo Lib "vxbase.dll" () As Long
  208. Declare Function vxRecord Lib "vxbase.dll" (RecStruc As Any) As Integer
  209. Declare Function vxRecSize Lib "vxbase.dll" () As Integer
  210. Declare Function vxReindex Lib "vxbase.dll" () As Integer
  211. Declare Function vxReplMemo Lib "vxbase.dll" (ByVal FieldName As String, ByVal MemoString As String) As Integer
  212. Declare Function vxSeek Lib "vxbase.dll" (ByVal SearchKey As String) As Integer
  213. Declare Function vxSeekSoft Lib "vxbase.dll" (ByVal SearchKey As String) As Integer
  214. Declare Function vxSelectDbf Lib "vxbase.dll" (ByVal DbfArea As Integer) As Integer
  215. Declare Function vxSelectNtx Lib "vxbase.dll" (ByVal NtxArea As Integer) As Integer
  216. Declare Function vxSetHandles Lib "vxbase.dll" (ByVal NumHandles As Integer) As Integer
  217. Declare Function vxSkip Lib "vxbase.dll" (ByVal NumRecords As Long) As Integer
  218. Declare Function vxTestNtx Lib "vxbase.dll" (ByVal NtxArea As Integer) As Integer
  219. Declare Function vxTop Lib "vxbase.dll" () As Integer
  220. Declare Function vxTrue Lib "vxbase.dll" (ByVal FieldName As String) As Integer
  221. Declare Function vxUnlock Lib "vxbase.dll" () As Integer
  222. Declare Function vxUseDbf Lib "vxbase.dll" (ByVal DbfName As String) As Integer
  223. Declare Function vxUseDbfRO Lib "vxbase.dll" (ByVal DbfName As String) As Integer
  224. Declare Function vxUseNtx Lib "vxbase.dll" (ByVal NtxName As String) As Integer
  225. Declare Function vxWrite Lib "vxbase.dll" () As Integer
  226. Declare Function vxZap Lib "vxbase.dll" () As Integer
  227.  
  228.  
  229. ' ---------------------------------------
  230. ' File structure data type. Add more
  231. ' elements or delete unnecessary elements
  232. ' as required by the largest dbf creation
  233. ' in your application
  234. ' ---------------------------------------
  235.  
  236. Type FileStruc
  237.    Fld01 As String * 16
  238.    Fld02 As String * 16
  239.    Fld03 As String * 16
  240.    Fld04 As String * 16
  241.    Fld05 As String * 16
  242.    Fld06 As String * 16
  243.    Fld07 As String * 16
  244.    Fld08 As String * 16
  245.    Fld09 As String * 16
  246.    Fld10 As String * 16
  247.    Fld11 As String * 16
  248.    Fld12 As String * 16
  249.    Fld13 As String * 16
  250.    Fld14 As String * 16
  251.    Fld15 As String * 16
  252.    Fld16 As String * 16
  253.    Fld17 As String * 16
  254.    Fld18 As String * 16
  255.    Fld19 As String * 16
  256.    Fld20 As String * 16
  257.    Fld21 As String * 16
  258.    Fld22 As String * 16
  259.    Fld23 As String * 16
  260.    Fld24 As String * 16
  261.    Fld25 As String * 16
  262.    Fld26 As String * 16
  263.    Fld27 As String * 16
  264.    Fld28 As String * 16
  265.    Fld29 As String * 16
  266.    Fld30 As String * 16
  267.    Fld31 As String * 16
  268.    Fld32 As String * 16
  269. End Type
  270.  
  271. ' declare functions that use FileStruc type
  272. ' -----------------------------------------
  273. Declare Function vxCreateDbf Lib "vxbase.dll" (ByVal NewDbfName As String, ByVal NumFields As Integer, FStructure As FileStruc) As Integer
  274.  
  275. ' ----------------------------------------
  276. ' define types file record structure for
  277. ' use in vxform8 and the vxRecord function
  278. ' ----------------------------------------
  279. Type CatRec
  280.    cDelFlag As String * 1
  281.    Category As String * 3
  282.    CatName As String * 35
  283. End Type
  284. ' note that every xbase record structure MUST begin
  285. ' with a single character deletion flag
  286. ' -------------------------------------------------
  287.  
  288. '============================================================================'
  289. '                                                                            '
  290. ' Visual Basic global constant file.  This file can be loaded into the       '
  291. ' global module.                                                             '
  292. '                                                                            '
  293. ' Some constants are commented out because they have duplicates (for         '
  294. ' example, NONE appears in several places).                                  '
  295. '                                                                            '
  296. '============================================================================'
  297.  
  298. '========='
  299. '         '
  300. ' General '
  301. '         '
  302. '========='
  303.  
  304. ' Booleans
  305. Global Const TRUE = -1
  306. Global Const FALSE = 0
  307.  
  308. '====================='
  309. '                     '
  310. ' Function parameters '
  311. '                     '
  312. '====================='
  313.  
  314. ' MsgBox parameters
  315. Global Const MB_OK = 0                 ' OK button only
  316. Global Const MB_OKCANCEL = 1           ' OK and Cancel buttons
  317. Global Const MB_ABORTRETRYIGNORE = 2   ' Abort, Retry, and Ignore buttons
  318. Global Const MB_YESNOCANCEL = 3        ' Yes, No, and Cancel buttons
  319. Global Const MB_YESNO = 4              ' Yes and No buttons
  320. Global Const MB_RETRYCANCEL = 5        ' Retry and Cancel buttons
  321.  
  322. Global Const MB_ICONSTOP = 16          ' Critical message
  323. Global Const MB_ICONQUESTION = 32      ' Warning query
  324. Global Const MB_ICONEXCLAMATION = 48   ' Warning message
  325. Global Const MB_ICONINFORMATION = 64   ' Information message
  326.  
  327. Global Const MB_DEFBUTTON1 = 0         ' First button is default
  328. Global Const MB_DEFBUTTON2 = 256       ' Second button is default
  329. Global Const MB_DEFBUTTON3 = 512       ' Third button is default
  330.  
  331. ' MsgBox return values
  332. Global Const IDOK = 1                  ' OK button pressed
  333. Global Const IDCANCEL = 2              ' Cancel button pressed
  334. Global Const IDABORT = 3               ' Abort button pressed
  335. Global Const IDRETRY = 4               ' Retry button pressed
  336. Global Const IDIGNORE = 5              ' Ignore button pressed
  337. Global Const IDYES = 6                 ' Yes button pressed
  338. Global Const IDNO = 7                  ' No button pressed
  339.  
  340. '================='
  341. '                 '
  342. ' Property values '
  343. '                 '
  344. '================='
  345.  
  346. ' Alignment (label)
  347. Global Const LEFT_JUSTIFY = 0          ' 0 - Left Justify
  348. Global Const RIGHT_JUSTIFY = 1         ' 1 - Right Justify
  349. Global Const CENTER = 2                ' 2 - Center
  350.  
  351. ' BackColor, ForeColor, FillColor (standard RGB colors: form, controls)
  352. Global Const BLACK = &H0&
  353. Global Const RED = &HFF&
  354. Global Const GREEN = &HFF00&
  355. Global Const YELLOW = &HFFFF&
  356. Global Const BLUE = &HFF0000
  357. Global Const MAGENTA = &HFF00FF
  358. Global Const CYAN = &HFFFF00
  359. Global Const WHITE = &HFFFFFF
  360.  
  361. ' BackColor, ForeColor, FillColor (system colors: form, controls)
  362. Global Const SCROLL_BARS = &H80000000           ' Scroll-bars gray area.
  363. Global Const DESKTOP = &H80000001               ' Desktop.
  364. Global Const ACTIVE_TITLE_BAR = &H80000002      ' Active window caption.
  365. Global Const INACTIVE_TITLE_BAR = &H80000003    ' Inactive window caption.
  366. Global Const MENU_BAR = &H80000004              ' Menu background.
  367. Global Const WINDOW_BACKGROUND = &H80000005     ' Window background.
  368. Global Const WINDOW_FRAME = &H80000006          ' Window frame.
  369. Global Const MENU_TEXT = &H80000007             ' Text in menus.
  370. Global Const WINDOW_TEXT = &H80000008           ' Text in windows.
  371. Global Const TITLE_BAR_TEXT = &H80000009        ' Text in caption, size box, scroll-bar arrow box..
  372. Global Const ACTIVE_BORDER = &H8000000A         ' Active window border.
  373. Global Const INACTIVE_BORDER = &H8000000B       ' Inactive window border.
  374. Global Const APPLICATION_WORKSPACE = &H8000000C ' Background color of multiple document interface (MDI) applications.
  375. Global Const HIGHLIGHT = &H8000000D             ' Items selected item in a control.
  376. Global Const HIGHLIGHT_TEXT = &H8000000E        ' Text of item selected in a control.
  377. Global Const BUTTON_FACE = &H8000000F           ' Face shading on command buttons.
  378. Global Const BUTTON_SHADOW = &H80000010         ' Edge shading on command buttons.
  379. Global Const GRAY_TEXT = &H80000011             ' Grayed (disabled) text.  This color is set to 0 if the current display driver does not support a solid gray color.
  380. Global Const BUTTON_TEXT = &H80000012           ' Text on push buttons.
  381.  
  382. ' BorderStyle (form, label, picture box, text box)
  383. Global Const NONE = 0                  ' 0 - None
  384. Global Const FIXED_SINGLE = 1          ' 1 - Fixed Single
  385. Global Const SIZABLE = 2               ' 2 - Sizable (Forms only)
  386. Global Const FIXED_DOUBLE = 3          ' 3 - Fixed Double (Forms only)
  387.  
  388. ' DragMode (controls)
  389. Global Const MANUAL = 0                ' 0 - Manual
  390. Global Const AUTOMATIC = 1             ' 1 - Automatic
  391.  
  392. ' DrawMode (form, picture box, Printer)
  393. Global Const BLACKNESS = 1             ' 1 - Blackness
  394. Global Const NOT_MERGE_PEN = 2         ' 2 - Not Merge Pen
  395. Global Const MASK_NOT_PEN = 3          ' 3 - Mask Not Pen
  396. Global Const NOT_COPY_PEN = 4          ' 4 - Not Copy Pen
  397. Global Const MASK_PEN_NOT = 5          ' 5 - Mask Pen Not
  398. Global Const INVERT = 6                ' 6 - Invert
  399. Global Const XOR_PEN = 7               ' 7 - Xor Pen
  400. Global Const NOT_MASK_PEN = 8          ' 8 - Not Mask Pen
  401. Global Const MASK_PEN = 9              ' 9 - Mask Pen
  402. Global Const NOT_XOR_PEN = 10          ' 10 - Not Xor Pen
  403. Global Const NOP = 11                  ' 11 - Nop
  404. Global Const MERGE_NOT_PEN = 12        ' 12 - Merge Not Pen
  405. Global Const COPY_PEN = 13             ' 13 - Copy Pen
  406. Global Const MERGE_PEN_NOT = 14        ' 14 - Merge Pen Not
  407. Global Const MERGE_PEN = 15            ' 15 - Merge Pen
  408. Global Const WHITENESS = 16            ' 16 - Whiteness
  409.  
  410. ' DrawStyle (form, picture box, Printer)
  411. Global Const SOLID = 0                 ' 0 - Solid
  412. Global Const DASH = 1                  ' 1 - Dash
  413. Global Const DOT = 2                   ' 2 - Dot
  414. Global Const DASH_DOT = 3              ' 3 - Dash-Dot
  415. Global Const DASH_DOT_DOT = 4          ' 4 - Dash-Dot-Dot
  416. Global Const INVISIBLE = 5             ' 5 - Invisible
  417. Global Const INSIDE_SOLID = 6          ' 6 - Inside Solid
  418.  
  419. ' FillStyle (form, picture box, Printer)
  420. ' Global Const SOLID = 0               ' 0 - Solid
  421. Global Const TRANSPARENT = 1           ' 1 - Transparent
  422. Global Const HORIZONTAL_LINE = 2       ' 2 - Horizontal Line
  423. Global Const VERTICAL_LINE = 3         ' 3 - Vertical Line
  424. Global Const UPWARD_DIAGONAL = 4       ' 4 - Upward Diagonal
  425. Global Const DOWNWARD_DIAGONAL = 5     ' 5 - Downward Diagonal
  426. Global Const CROSS = 6                 ' 6 - Cross
  427. Global Const DIAGONAL_CROSS = 7        ' 7 - Diagonal Cross
  428.  
  429. ' LinkMode (controls)
  430. ' Global Const NONE = 0                ' 0 - None
  431. Global Const HOT = 1                   ' 1 - Hot
  432. Global Const COLD = 2                  ' 2 - Cold
  433.  
  434. ' LinkMode (form)
  435. ' Global Const NONE = 0                ' 0 - None
  436. Global Const SERVER = 1                ' 1 - Server
  437.  
  438. ' MousePointer (form, controls)
  439. Global Const DEFAULT = 0               ' 0 - Default
  440. Global Const ARROW = 1                 ' 1 - Arrow
  441. Global Const CROSSHAIR = 2             ' 2 - Cross
  442. Global Const IBEAM = 3                 ' 3 - I-Beam
  443. Global Const ICON_POINTER = 4          ' 4 - Icon
  444. Global Const SIZE_POINTER = 5          ' 5 - Size
  445. Global Const SIZE_NE_SW = 6            ' 6 - Size NE SW
  446. Global Const SIZE_N_S = 7              ' 7 - Size N S
  447. Global Const SIZE_NW_SE = 8            ' 8 - Size NW SE
  448. Global Const SIZE_W_E = 9              ' 9 - Size W E
  449. Global Const UP_ARROW = 10             ' 10 - Up Arrow
  450. Global Const HOURGLASS = 11            ' 11 - Hourglass
  451. Global Const NO_DROP = 12              ' 12 - No drop
  452.  
  453. ' ScaleMode (form, picture box, Printer)
  454. Global Const USER = 0                  ' 0 - User
  455. Global Const TWIPS = 1                 ' 1 - Twip
  456. Global Const POINTS = 2                ' 2 - Point
  457. Global Const PIXELS = 3                ' 3 - Pixel
  458. Global Const CHARACTERS = 4            ' 4 - Character
  459. Global Const INCHES = 5                ' 5 - Inch
  460. Global Const MILLIMETERS = 6           ' 6 - Millimeter
  461. Global Const CENTIMETERS = 7           ' 7 - Centimeter
  462.  
  463. ' ScrollBar (text box)
  464. ' Global Const NONE = 0                ' 0 - None
  465. Global Const HORIZONTAL = 1            ' 1 - Horizontal
  466. Global Const VERTICAL = 2              ' 2 - Vertical
  467. Global Const BOTH = 3                  ' 3 - Both
  468.  
  469. ' Value (check box)
  470. Global Const UNCHECKED = 0             ' 0 - Unchecked
  471. Global Const CHECKED = 1               ' 1 - Checked
  472. Global Const GRAYED = 2                ' 2 - Grayed
  473.  
  474. ' WindowState (form)
  475. Global Const NORMAL = 0                ' 0 - Normal
  476. Global Const MINIMIZED = 1             ' 1 - Minimized
  477. Global Const MAXIMIZED = 2             ' 2 - Maximized
  478.  
  479.