KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q101055: How to Specify Screen Object Colors in FoxPro for Windows

Article: Q101055
Product(s): Microsoft FoxPro
Version(s): WINDOWS:2.5x,2.6x,3.0
Operating System(s): 
Keyword(s): 
Last Modified: 05-FEB-2000

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Visual FoxPro for Windows, version 3.0 
- Microsoft FoxPro for Windows, versions 2.5x, 2.6x 
-------------------------------------------------------------------------------

SUMMARY
=======

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 query words: VFoxWin FoxWin 2.50 2.50a 2.50b 2.60 2.60a SCREEN BUILDER COLOR BMP field

======================================================================
Keywords          :  
Technology        : kbVFPsearch kbAudDeveloper kbFoxproSearch kbVFP300
Version           : WINDOWS:2.5x,2.6x,3.0

=============================================================================

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.

Copyright Microsoft Corporation 1986-2002.