PRB: SET COLOR TO Results in Differing Shades of Gray (114791)
The information in this article applies to:
- Microsoft FoxPro for Macintosh 2.5b
- Microsoft FoxPro for Macintosh 2.5c
- Microsoft Visual FoxPro for Macintosh 3.0b
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.
REFERENCES
For more information about color schemes and color pairs, see the
SET COLOR commands in the "Language Reference."
Modification Type: | Major | Last Reviewed: | 11/17/2003 |
---|
Keywords: | KB114791 kbAudDeveloper |
---|
|