How to Specify Screen Object Colors in FoxPro for Windows

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

In FoxPro for MS-DOS, you can use the Color command on the Screen menu to specify colors for screen objects. However, this command is not available in FoxPro for Windows.

FoxPro 2.x for Windows

To specify colors in FoxPro 2.x for Windows, select the screen object or a group of objects. To modify the background color of the object(s), choose Fill Color from the Object menu. To modify the outline and text of the object(s), choose Pen Color from the Object menu.

NOTE: The Automatic setting will match the Windows color sets from the Control Panel.

To change the background of the entire screen, choose Layout from the Screen menu, and choose the Color button. You can either select a specific color or select a wallpaper pattern by choosing the Wallpaper button and specifying a .BMP file.

Visual FoxPro for Windows

To set the foreground or background color of a control in Visual FoxPro for Windows:

  1. From the View menu, choose Toolbars and select Color Palette.
2. Choose the Foreground Color button or the Background Color button. 3. Select the control you want to change. 4. In the Color Palette toolbar, select the color you want to use. 5. To see more color choices, choose Other Color.


Additional reference words: VFoxWin FoxWin 2.50 2.50a 2.50b 2.60 2.60a 3.00
SCREEN BUILDER COLOR BMP field
KBCategory: kbprg
KBSubcategory: FxtoolSbuilder


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.