home *** CD-ROM | disk | FTP | other *** search
- 'Default Values to determine Field Sizes
- Global Const DefaultXSquares% = 12
- Global NumberXSquares As Integer
- Global Const DefaultYSquares% = 8
- Global NumberYSquares As Integer
- Global Const DefaultSquareSize% = 40
- Global SquareSize As Integer
- Global Const DefaultTimer! = 2
- Global SetTimer As Single
-
- Global ScreenPixelSizeX As Integer
- Global ScreenPixelSizeY As Integer
-
- Global XSquares As Integer
- Global YSquares As Integer
- Global SaveFile As Integer
- Global SaveFileChange As Integer
- Global IniFile As String
- Global Const SelectSaveFileNo% = 1
- Global Const SelectSaveFileWIN% = 2
- Global Const SelectSaveFileWEP% = 3
- Global Const SelectSaveFileMy% = 4
- Global Const SelectMy$ = "mymemory.ini"
- Global Const SelectWEP$ = "entpack.ini"
- Global Const SelectWIN$ = "win.ini"
- Global Const SelectHeader = "MyMemory"
-
- Global SaveScore As Integer
- Global ScoreArray(5, 2) As Integer
- Global ScoreArrayName(5, 2) As String
- Global Const NoScore% = 32767
-
- Global NL As String
- Global MoveWord As String
-
- 'conversion data - twips per pixel
- Global Const TwipsPerPixel% = 15
- 'Form label heights in pixels
- Global Const FormLabel& = 22
- 'Form position and size in twips
- Global Const FormBorder& = 30
- Global Const FormHeader& = 600
- Global Const FormTop& = 705 'Value to use to see VB Menu Bar during development
-
- 'Provide status of each field
- Global FieldStatus As Integer
- Global Const FieldNotReady% = 0
- Global Const FieldReady% = 1
- Global Const FieldSolved% = 2
-
- 'Provide status of each square of field
- Global SquareStatusArray() As Integer
- Global Const SquareClosed% = 0
- Global Const SquareOpen% = 1
- Global Const SquareSolved% = 2
-
- 'Provide scene behind square
- Global SquareSceneArray() As Integer
-
- 'Provide status of current game
- 'Indicate 1st or 2nd guess
- Global CurrentSquare As Integer
- 'Keep data on 1st guess
- Global CurrentSquare1 As Integer
- Global CurrentSquare1X As Integer
- Global CurrentSquare1Y As Integer
- 'Keep track of number of moves
- Global CurrentMoves As Integer
- 'Keep track of number of squares solved
- Global CurrentSolved As Integer
-
- ' Booleans
- Global Const TRUE = -1
- Global Const FALSE = 0
-
- ' Button and Shift (KeyDown, KeyUp, MouseDown, MouseMove, MouseUp)
- Global Const LEFT_BUTTON = 1
- Global Const RIGHT_BUTTON = 2
-
- ' MsgBox parameters
- Global Const MB_OK = 0 ' OK button only
- Global Const MB_OKCANCEL = 1 ' OK and Cancel buttons
- Global Const MB_YESNOCANCEL = 3 ' Yes, No, and Cancel buttons
- Global Const MB_YESNO = 4 ' Yes and No buttons
-
- Global Const MB_DEFBUTTON1 = 0 ' First button is default
- Global Const MB_DEFBUTTON2 = 256 ' Second button is default
- Global Const MB_DEFBUTTON3 = 512 ' Third button is default
-
- ' MsgBox return values
- Global Const IDOK = 1 ' OK button pressed
- Global Const IDCANCEL = 2 ' Cancel button pressed
- Global Const IDYES = 6 ' Yes button pressed
- Global Const IDNO = 7 ' No button pressed
-
- ' Show (form)
- Global Const MODAL = 1
-
- ' BackColor, ForeColor, FillColor (standard RGB colors: form, controls)
- Global Const BLACK = &H0&
- Global Const RED = &HFF&
- Global Const GREEN = &HFF00&
- Global Const YELLOW = &HFFFF&
- Global Const BLUE = &HFF0000
- Global Const MAGENTA = &HFF00FF
- Global Const CYAN = &HFFFF00
- Global Const WHITE = &HFFFFFF
- Global Const GRAY_LIGHT = &HC0C0C0
- Global Const GRAY_MEDIUM = &H808080
-
- ' FillStyle (form, picture box, Printer)
- Global Const SOLID = 0 ' 0 - Solid
- Global Const TRANSPARENT = 1 ' 1 - Transparent
-
- ' MousePointer (form, controls)
- Global Const DEFAULT = 0 ' 0 - Default
- Global Const HOURGLASS = 11 ' 11 - Hourglass
-
- ' Value (check box)
- Global Const UNCHECKED = 0 ' 0 - Unchecked
- Global Const CHECKED = 1 ' 1 - Checked
- Global Const GRAYED = 2 ' 2 - Grayed
-
-