Kbase 15447: GRAY colors using COLOR Phrase in V7/V8
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/10/1998 |
|
GRAY colors using COLOR Phrase in V7/V8
There are some considerations to keep in mind when porting V6
applications to V7 or V8.
The COLOR Phrase uses colour names to identify the colours.
FGCOLOR and BGCOLOR attributes, used for Widgets, use colour numbers.
Here is the table of translation for V6 and V7/V8 syntax equivalents:
FGCOLOR
BGCOLOR COLOR Phrase
------- ----------------
0 BLACK
1 BLUE
2 GREEN
3 CYAN
4 RED
5 MAGENTA
6 BROWN
7 GRAY (*)
7 DARK-GRAY (*)
8 (*)
9 LIGHT-BLUE
10 LIGHT-GREEN
11 LIGHT-CYAN
12 LIGHT-RED
13 LIGHT-MAGENTA
14 LIGHT-BROWN (*)
14 YELLOW (*)
15 WHITE
(*) Note that GRAY and DARK-GRAY are both the same colour (dark gray).
Note that there is no colour name for colour number 8 (gray).
Note that LIGHT-BROWN and YELLOW are both the same colour (yellow)
In MS-WINDOWS colours are defined in PROGRESS.INI. There is mistake in
colours 7 and 8, since colour 7 looks like dark gray instead of gray,
and colour 8 looks like gray instead of dark gray (they are interchan-
ged).
Progress is not going to modify them, due to the high quantity of
applications already written using these colours.
There is no way to get gray colour (normal gray) using COLOR Phrase,
either MS-WINDOWS or MOTIF.
In V7 and V8, the COLOR Phrase is only supported for backwards
compatibility.
Developers should not use the COLOR Phrase with V7 and V8. FGCOLOR and
BGCOLOR attributes are prefered to avoid possible problems.
jsa
07 feb 96
Progress Software Technical Support Note # 15447