skip to main content

Working With Controls : Creating a control : Color management : Using standard COBOL values

Using standard COBOL values
The first way, provided for compatibility reasons, uses up to sixteen values, numbered from 1 to 16. Values 1 to 8 are base colors, 9 to 16 are their brighter version. The file "iscobol.def" contains the color definitions. They are divided into groups, and can be combined:
When an color value is used with a property that defines both the foreground color and the background colors, the value is computed as follows:
When an color value is used with a property that defines either the foreground color or the background color, the value can be only 0 to 15 and the corresponding color is applied to foreground or background. The table below shows the possible values for BACKGROUND-COLOR and FOREGROUND-COLOR properties.
Brightness can be also affected by the following clauses:
When the REVERSE-VIDEO phrase is specified, background and foreground colors are swapped.
When the SAME phrase is specified, the whole screen item for which it is specified is displayed with the same colors and attributes of the screen position occupied by its first character.
Properties that define both the foreground color and the background color are:
Properties that define only the background color are:
Properties that define only the foreground color are:

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left