Color Table by Color Pair Information Is Missing

Last reviewed: April 29, 1996
Article ID: Q99910
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a

SUMMARY

The FoxPro for Windows documentation does not include the color pair listings for each color scheme. This information is necessary to control the color of each screen element in FoxPro for Windows. Documentation is available by choosing the topic "COLORS" (under the "MISCELLANEOUS" topic) in FoxPro for Windows Help.

MORE INFORMATION

   Color                 Code
   --------------------------

   Black                  N
   Blank                  X
   Blue                   B
   Brown                  GR
   Cyan                   BG
   Green                  G
   Magenta                RB
   Red                    R
   White                  W
   Yellow                 GR+

On monochrome monitors, only four "colors" are available: white (W), black (N), underlined (U) and inverse video (I).

A plus sign (+) denotes high intensity for the foreground color.

   Color Schemes
   ---------------------------

   User Wind          Scheme 1
   User Menus         Scheme 2
   Menu Bar           Scheme 3
   Menu Pops          Scheme 4
   Dialogs            Scheme 5
   Dlog Pops          Scheme 6
   Alert              Scheme 7
   Windows            Scheme 8
   Wind Pops          Scheme 9
   Browse             Scheme 10
   Report             Scheme 11
   Alert Pops         Scheme 12

   User Winds (Scheme 1)
   -----------------------------

   Color Pair 1        SAY field
   Color Pair 2        GET field
   Color Pair 3        Border
   Color Pair 4        Title, active
   Color Pair 5        Title, idle & message
   Color Pair 6        Selected item
   Color Pair 7        Clock, Hot keys
   Color Pair 8        Shadow
   Color Pair 9        Enabled control
   Color Pair 10       Disabled control

   User Menus (Scheme 2)
   ----------------------------

   Color Pair 1        Disabled
   Color Pair 2        Enabled option
   Color Pair 3        Border
   Color Pair 4        Menu titles
   Color Pair 5        Message
   Color Pair 6        Selected option
   Color Pair 7        Hot keys
   Color Pair 8        Shadow
   Color Pair 9        Enabled control
   Color Pair 10       Disabled control

   Menu Bar (Scheme 3)
   ---------------------------------

   Color Pair 1        Disabled pads
   Color Pair 2        Enabled pads
   Color Pair 3        Border
   Color Pair 4        Title
   Color Pair 5        Message
   Color Pair 6        Selected pad
   Color Pair 7        Hot keys
   Color Pair 8        Shadow
   Color Pair 9        Enabled control
   Color Pair 10       Disabled control

   Menu Pops (Scheme 4)
   ---------------------------------

   Color Pair 1        Disabled option
   Color Pair 2        Enabled option
   Color Pair 3        Border
   Color Pair 4        Title
   Color Pair 5        Message
   Color Pair 6        Selected option
   Color Pair 7        Hot keys
   Color Pair 8        Shadow
   Color Pair 9        Enabled control
   Color Pair 10       Disabled control

   Dialogs (Scheme 5)
   ---------------------------------

   Color Pair 1        Normal text
   Color Pair 2        Text box
   Color Pair 3        Border
   Color Pair 4        Title
   Color Pair 5        Message
   Color Pair 6        Selected option
   Color Pair 7        Hot keys
   Color Pair 8        Shadow
   Color Pair 9        Enabled control
   Color Pair 10       Disabled control

   Dlog Pops (Scheme 6)
   -----------------------------------

   Color Pair 1        Disabled option
   Color Pair 2        Enabled option
   Color Pair 3        Border*
   Color Pair 4        Title
   Color Pair 5        Message
   Color Pair 6        Selected item
   Color Pair 7        Hot keys
   Color Pair 8        Shadow
   Color Pair 9        Enabled control
   Color Pair 10       Disabled control

 * The background color of a scrollable list is the background color
   of Color Pair 3. The foreground color is the foreground color of
   Color Pair 3--not bright. Hence, even if you select a bright
   foreground for Color Pair 3, it will be forced to be the normal
   color in the scrollable list border.

   Alert (Scheme 7)
   -------------------------------

   Color Pair 1        Normal text
   Color Pair 2        Text box
   Color Pair 3        Border
   Color Pair 4        Title
   Color Pair 5        Message
   Color Pair 6        Selected item
   Color Pair 7        Hot keys
   Color Pair 8        Shadow
   Color Pair 9        Enabled control
   Color Pair 10       Disabled control

   Windows (Scheme 8)
   ----------------------------------

   Color Pair 1        Normal text* **
   Color Pair 2        Text box***
   Color Pair 3        Border
   Color Pair 4        Title, active
   Color Pair 5        Title, idle
   Color Pair 6        Selected text
   Color Pair 7        Hot keys
   Color Pair 8        Shadow
   Color Pair 9        Enabled control**
   Color Pair 10       Disabled control

  * For the View and Label Layout windows, this color pair controls
    static text.

 ** In the Label Layout window, the lines and arrows that show the
    label dimension are the foreground color of Color Pair 9 in Scheme
    8. The background area around these lines is the background color
    of Color Pair 1 in Scheme 8.

*** For the View and Label Layout windows only.

   Window Pops (Scheme 9)
   --------------------------------

   Color Pair 1        Disabled option
   Color Pair 2        Enabled option
   Color Pair 3        Border*
   Color Pair 4        Title
   Color Pair 5        Message
   Color Pair 6        Selected option
   Color Pair 7        Hot keys
   Color Pair 8        Shadow
   Color Pair 9        Enabled control
   Color Pair 10       Disabled control

 * The background color of a scrollable list is the background color
   of Color Pair 3. The foreground color is the foreground color of
   Color Pair 3--not bright. Hence, even if you select a bright
   foreground for Color Pair 3, it will be forced to be the normal
   color in the scrollable list border.

   Browse (Scheme 10)
   ------------------------------------

   Color Pair 1        Other records
   Color Pair 2        Current field
   Color Pair 3        Border*
   Color Pair 4        Title, active
   Color Pair 5        Title, idle
   Color Pair 6        Selected text
   Color Pair 7        Current record**
   Color Pair 8        Shadow
   Color Pair 9        Enabled control
   Color Pair 10       Disabled control

 * For windows with grids using Scheme 8 or Scheme 10, the grid
   background will be the background of Color Pair 1. The grid lines
   (foreground) will be the background of Color Pair 3.

** The bullet that appears in the delete/recall column of the Browse
   window when you mark a record for deletion appears as the
   background color of Color Pair 7 in Scheme 10.

   Report (Scheme 11)
   -----------------------------------

   Color Pair 1        Text & B full
   Color Pair 2        Report field
   Color Pair 3        Border
   Color Pair 4        Title, active
   Color Pair 5        Title, idle
   Color Pair 6        Selected item
   Color Pair 7        Band A, empty
   Color Pair 8        Shadow
   Color Pair 9        Band A, full
   Color Pair 10       Band B, empty

   Alert Pops (Scheme 12)
   ---------------------------------

   Color Pair 1        Disabled option
   Color Pair 2        Enabled option
   Color Pair 3        Border*
   Color Pair 4        Title
   Color Pair 5        Message
   Color Pair 6        Selected option
   Color Pair 7        Hot keys
   Color Pair 8        Shadow
   Color Pair 9        Enabled control
   Color Pair 10       Disabled control

 * The background color of a scrollable list is the background color
   of Color Pair 3. The foreground color is the foreground color of
   Color Pair 3--not bright. Hence, even if you select a bright
   foreground for Color Pair 3, it will be forced to be the normal
   color in the scrollable list border.


Additional reference words: FoxWin 2.50 2.50a color pair foxprow
docerr
KBCategory: kbprg kbdocerr
KBSubcategory: FxprgBrowse


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.