Microsoft KB Archive/94345

{| = How to Change Colors of Objects in FoxPro for Windows =
 * width="100%"|

ID: Q94345

2.5x 2.60 2.60a 3.00 WINDOWS kbprg

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

Keywords         : FxenvFoxuser Version          : 2.5x 2.60 2.60a 3.00 Platform         : WINDOWS
 * }