Microsoft KB Archive/114791

= PRB: SET COLOR TO Results in Differing Shades of Gray =

Article ID: 114791

Article Last Modified on 11/17/2003

-

APPLIES TO


 * Microsoft FoxPro 2.5b for Macintosh
 * Microsoft Visual FoxPro 2.5c for Macintosh
 * Microsoft Visual FoxPro 3.0b for Macintosh

-



This article was previously published under Q114791



SYMPTOMS
The default desktop color is a different shade of gray than the default color pair displayed for scheme 1 in FoxPro for Macintosh.



CAUSE
This behavior occurs because the default color set is actually using an RGB value for the color information. The color pair listing returned by scheme(1) returns information in color pair letters, which are an approximation of the current RGB settings. The SET COLOR TO n/w* command uses a different set of RGB values to represent gray.



RESOLUTION
To restore the default desktop color programmatically, issue the following commands: SET COLOR TO  CLEAR For more precise control over the colors, use RGB values instead of color pairs.



Steps to Reproduce Behavior
 Start FoxPro for Macintosh.  Issue the following commands in the Command window: SET COLOR TO     CLEAR ?SCHEME(1) Note that the desktop is a pale gray. The first color pair listed for scheme 1 is "N/W*".   Issue the following commands in the Command window: SET COLOR OF SCHEME 1 TO "n/w*" CLEAR ?SCHEME(1) 

Note that the desktop is now a darker shade of gray, although the color pair information returned by the second ?SCHEME(1) command is identical to the color pair information returned by the first command.

