How to Change Colors of Objects in FoxPro for Windows

Last reviewed: April 29, 1996
Article ID: Q94345
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 3.0
  • Microsoft FoxPro for Windows, versions 2.5x, 2.6, 2.6a

SUMMARY

In FoxPro for Windows, the colors used by the FoxPro interface are determined by the current Microsoft Windows color scheme specified in the Color option of the Control Panel application.

Unlike FoxPro versions 2.0 and later for MS-DOS, the SET COLOR OF SCHEME command does not change the colors of elements of the FoxPro for Windows interface, such as the main FoxPro screen or the system menu. SET COLOR OF SCHEME affects only the colors of user-defined objects.

MORE INFORMATION

Use the SET COLOR OF SCHEME command to change the colors of user-defined objects such as menus, windows, GET fields, and SAY fields. FoxPro for Windows determines the default colors for these objects from the current Windows color scheme, as follows:

   User-defined object           Corresponding Windows color
   ---------------------------------------------------------

   @ ... GET field background    Button face
   @ ... GET text                Window text
   @ ... SAY field background    Window background
   @ ... SAY text                Window text
   Active window border          Active border
   Active window title bar       Active title bar
   Menu text                     Menu text
   System menu bar               Menu bar

The following statements change the color of @ ... GET fields in color scheme 1 to red text on a black background and save the new color set in the FoxPro resource file as clrset1:

   SET COLOR OF SCHEME 1 TO ,R/N
   CREATE COLOR SET clrset1

The SET COLOR SET TO command restores a previously saved color set.


Additional reference words: VFoxWin 3.00 FoxWin 2.50 2.50a 2.50b 2.60 2.60a
colour
colorset
KBCategory: kbprg
KBSubcategory: FxenvFoxuser


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.