advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CONSTANT.BI File Details
  Summary  Details                           Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 CONSTANT.BI File
 
 ■ The following constants are initially defined as shown in the file
   CONSTANT.BI:
 
   Category           Constant                       Value
   ════════════════   ════════════════════════════   ═══════════════════════
   Booleans
                      TRUE                           -1
                      FALSE                          0
 
   Event parameters
   • Button and Shift (KeyDown, KeyUp, MouseDown, MouseMove, MouseUp):
 
                      SHIFT_MASK                     1
                      CTRL_MASK                      2
                      ALT_MASK                       4
                      LEFT_BUTTON                    1
                      RIGHT_BUTTON                   2
 
   • KeyCode (KeyDown, KeyUp) values return the same value as KeyAscii in
     the KeyPress event procedure for keys corresponding to ASCII printable
     characters (A-Z, a-z, 0-9, ~,[,],{,},+,=). Return values will be the
     ASCII value of the character. See: ASCII Character Codes
 
   • Extended ASCII characters can be returned via KeyCode and KeyAscii
     by holding down the ALT key, entering the ASCII number of the extended
     ASCII character, then releasing the ALT key. Note: The NumLock key must
     be on if the numeric keypad is used.
 
                      KEY_BACK                       8
                      KEY_TAB                        9
                      KEY_CLEAR                      12
                      KEY_RETURN                     13
                      KEY_SHIFT                      16
                      KEY_CONTROL                    17
                      KEY_MENU                       18
                      KEY_PAUSE                      19
                      KEY_CAPITAL                    20
                      KEY_ESCAPE                     27
                      KEY_SPACE                      32
                      KEY_PRIOR                      33
                      KEY_NEXT                       34
                      KEY_END                        35
                      KEY_HOME                       36
                      KEY_LEFT                       37
                      KEY_UP                         38
                      KEY_RIGHT                      39
                      KEY_DOWN                       40
                      KEY_SELECT                     41
                      KEY_PRINT                      42
                      KEY_EXECUTE                    43
                      KEY_SNAPSHOT                   44
                      KEY_INSERT                     45
                      KEY_DELETE                     127
                      KEY_HELP                       47
                      KEY_NUMPAD0                    48
                      KEY_NUMPAD1                    49
                      KEY_NUMPAD2                    50
                      KEY_NUMPAD3                    51
                      KEY_NUMPAD4                    52
                      KEY_NUMPAD5                    53
                      KEY_NUMPAD6                    54
                      KEY_NUMPAD7                    55
                      KEY_NUMPAD8                    56
                      KEY_NUMPAD9                    57
                      KEY_MULTIPLY                   42
                      KEY_ADD                        43
                      KEY_SUBTRACT                   45
                      KEY_DECIMAL                    46
                      KEY_DIVIDE                     47
                      KEY_F1                         112
                      KEY_F2                         113
                      KEY_F3                         114
                      KEY_F4                         115
                      KEY_F5                         116
                      KEY_F6                         117
                      KEY_F7                         118
                      KEY_F8                         119
                      KEY_F9                         120
                      KEY_F10                        121
                      KEY_F11                        122
                      KEY_F12                        123
                      KEY_NUMLOCK                    144
                      KEY_SCRLOCK                    145
 
   • State (DragOver):
                      ENTER                          0
                      LEAVE                          1
                      OVER                           2
 
   Function parameters
   • MSGBOX parameters:
                      MB_OK                          0
                      MB_OKCANCEL                    1
                      MB_ABORTRETRYIGNORE            2
                      MB_YESNOCANCEL                 3
                      MB_YESNO                       4
                      MB_RETRYCANCEL                 5
                      MB_DEFBUTTON1                  0
                      MB_DEFBUTTON2                  256
                      MB_DEFBUTTON3                  512
 
   • MSGBOX return values:
                      IDOK                           1
                      IDCANCEL                       2
                      IDABORT                        3
                      IDRETRY                        4
                      IDIGNORE                       5
                      IDYES                          6
                      IDNO                           7
 
   Method parameters
   • DRAG (controls):
                      CANCEL                         0
                      BEGIN_DRAG                     1
                      END_DRAG                       2
   • SHOW (form):
                      MODAL                          1
                      MODELESS                       0
 
   Property values
   • Alignment (label):
                      LEFT_JUSTIFY                   0
                      RIGHT_JUSTIFY                  1
                      CENTER                         2
 
   • BackColor, ForeColor (form, controls):
                      BLACK                          0
                      BLUE                           1
                      GREEN                          2
                      CYAN                           3
                      RED                            4
                      MAGENTA                        5
                      BROWN                          6
                      WHITE                          7
                      GRAY                           8
                      BRIGHT_BLUE                    9
                      BRIGHT_GREEN                   10
                      BRIGHT_CYAN                    11
                      BRIGHT_RED                     12
                      PINK                           13
                      YELLOW                         14
                      BRIGHT_WHITE                   15
 
   • BorderStyle (form, label, picture box, text box):
                      NONE                           0
                      FIXED_SINGLE                   1
                      SIZABLE_SINGLE                 2
                      FIXED_DOUBLE                   3
                      SIZABLE_DOUBLE                 4
                      FIXED_SOLID                    5
                      SIZABLE_SOLID                  6
 
   • DragMode (controls):
                      MANUAL                         0
                      AUTOMATIC                      1
 
   • FormType (form - Single Document Interface (SDI) vs. Multiple Document
              Interface (MDI))
                      NORMAL                         0
                      MDI                            1
 
   • MousePointer (form, controls):
                      DEFAULT                        0
                      BLOCK                          1
                      CROSSHAIR                      2
                      IBEAM                          3
                      ICON                           4
                      SIZE_POINTER                   5
                      LEFT_ARROW                     6
                      SIZE_N_S                       7
                      RIGHT_ARROW                    8
                      SIZE_W_E                       9
                      UP_ARROW                       10
                      HOURGLASS                      11
                      DOWN_ARROW                     12
 
   • ScrollBar (text box):
                      NONE
                      HORIZONTAL                     1
                      VERTICAL                       2
                      BOTH                           3
 
   • Value (check box):
                      UNCHECKED                      0
                      CHECKED                        1
                      GRAYED                         2
 
   • WindowState (form):
                      NORMAL                         0
                      MINIMIZED                      1
                      MAXIMIZED                      2
 
   SCREEN.ControlPanel array elements
                      ACCESSKEY_FORECOLOR            0
                      ACTIVE_BORDER_BACKCOLOR        1
                      ACTIVE_BORDER_FORECOLOR        2
                      ACTIVE_WINDOW_SHADOW           3
                      COMBUTTON_FORECOLOR            4
                      DESKTOP_BACKCOLOR              5
                      DESKTOP_FORECOLOR              6
                      DESKTOP_FILL_PATTERN           7
                      DISABLED_ITEM_FORECOLOR        8
                      MENU_BACKCOLOR                 9
                      MENU_FORECOLOR                 10
                      MENU_SELECTED_BACKCOLOR        11
                      MENU_SELECTED_FORECOLOR        12
                      SCROLLBAR_BACKCOLOR            13
                      SCROLLBAR_FORECOLOR            14
                      THREE_D                        15
                      TITLEBAR_BACKCOLOR             16
                      TITLEBAR_FORECOLOR             17