1
|
COLOR Statement
|
2
|
===============
|
3
|
Indicates the video attribute or color for normal display or for data entry.
|
4
|
SYNTAX
|
5
|
DISPLAY Indicates that you want to use a specific color when the system displays a field.
|
6
|
PROMPT Indicates that you want to use a specific color when the system prompts a user for input by an INSERT, PROMPT-FOR, SET, or UPDATE statement.
|
7
|
|
8
|
COLOR [ DISPLAY ] color-phrase [ PROMPT color-phrase ] { field ... } { [ frame-phrase ] }
|
9
|
COLOR PROMPT color-phrase { field ... } { [ frame-phrase ] }
|
10
|
|
11
|
COLOR Phrase
|
12
|
============
|
13
|
Specifies a video attribute or color.
|
14
|
In Progress Version 7 and later, the COLOR phrase is superceded by the
|
15
|
FGCOLOR and BGCOLOR options in graphical user interfaces and by the
|
16
|
PFCOLOR and DCOLOR options in character interfaces.
|
17
|
The COLOR phrase is supported only for backward compatibility.
|
18
|
|
19
|
? Windows ? On a color monitor, the default colors are a blue background and a white
|
20
|
foreground. On a monochrome monitor, the default colors are a standard background
|
21
|
and foreground, depending on the monitor.
|
22
|
? UNIX ?The default colors are the normal display mode of your terminal.
|
23
|
|
24
|
{ NORMAL | INPUT | MESSAGES | protermcap-attribute | dos-hex-attribute |
|
25
|
{ [ BLINK- ] [ BRIGHT- ] [ fgnd-color ] [ bgnd-color ] } |
|
26
|
{ [ BLINK- ] [ RVV- ] [ UNDERLINE- ] [ BRIGHT- ] [ fgnd-color ] } |
|
27
|
VALUE ( expression )
|
28
|
|
29
|
|
30
|
Progress Default Colors
|
31
|
=======================
|
32
|
|
33
|
Index RGB Values Actual Color Defined
|
34
|
------------------------------------------
|
35
|
0 0, 0, 0 Black
|
36
|
1 0, 0, 128 Dark blue
|
37
|
2 0, 128, 0 Dark green
|
38
|
3 0, 128, 128 Blue green
|
39
|
4 128, 0, 0 Red
|
40
|
5 128, 0, 128 Purple
|
41
|
6 128, 128, 0 Olive
|
42
|
7 128, 128, 128 Gray
|
43
|
8 192, 192, 192 Light gray
|
44
|
9 0, 0, 255 Blue
|
45
|
10 0, 255, 0 Green
|
46
|
11 0, 255, 255 Turquoise
|
47
|
12 255, 0, 0 Red
|
48
|
13 255, 0, 255 Pink
|
49
|
14 255, 255, 0 Yellow
|
50
|
15 255, 255, 255 White
|
51
|
|
52
|
CAUTION: The Progress Application Development Environment (ADE) reserves these 16
|
53
|
colors (0 through 15) defined in your environment. If you change the mappings of
|
54
|
these colors, the ADE tools might not function properly. You can add your own
|
55
|
application colors beginning with number 16.
|
56
|
|
57
|
Color in Character Interfaces
|
58
|
=============================
|
59
|
Color in a character interface differs from color in a graphical interface in these ways:
|
60
|
? In character interfaces, the BGCOLOR and FGCOLOR attributes have the unknown value (?).
|
61
|
? Each location in the color table contains a foreground/background color pair.
|
62
|
? DCOLOR specifies a foreground/background color pair that a widget uses when it displays data.
|
63
|
? PFCOLOR specifies a foreground/background color pair that a widget uses when it prompts for data.
|
64
|
When designing your interface, make sure that you specify different color pairs for DCOLOR and PFCOLOR.
|
65
|
|
66
|
Color Specification
|
67
|
===================
|
68
|
In character interfaces, Progress reserves color table locations 0 through 4 for the following foreground/background color pairs:
|
69
|
? Color 0 holds colors used as the NORMAL color by Progress.
|
70
|
? Color 1 holds the colors used as the INPUT color by Progress. As installed, this is underline mode.
|
71
|
? Color 2 holds the colors used as the MESSAGE color by Progress. As installed, this is reverse video.
|
72
|
? Color 3 holds the colors used for high-intensity mode. This mode is not available for all terminals.
|
73
|
? Color 4 holds the colors used for blink mode. This mode is not available for all terminals.
|
74
|
By default, text-input widgets use the INPUT colors when in prompt-for mode.
|
75
|
Note, however, that when displaying an editor widget with scroll bars to display read-only text, using
|
76
|
NORMAL rather than INPUT for prompt-for mode might make more visual sense to the user.
|
77
|
In the PROTERMCAP file, you can specify additional application color pairs from color 5 to 127.
|