


Use the COLOR-MODEL setting to perform uniform changes to your program's color scheme. These changes are represented by rules that act on your colors. An example of a rule is "exchange the foreground and background colors". You use the COLOR-MODEL setting to change your color scheme in a global way.
There are eleven color models, numbered from "0" to "10". Each of the models performs a particular set of changes.
There are so many possible color schemes, and so many personal preferences, that it's impossible to predict which color model will look best for your application. We summarize the general effects of each model in this chapter, to help you narrow your choices. Even so, the quickest way to pick the most suitable model is probably to try each one. To do this, add the line:
COLOR-MODEL 0
to your COBOL configuration file, and then run your program in the Windows environment. Observe the results. Then edit the configuration file to specify color model "1" and run again. You'll quickly see which model produces the results you want.
The default color model is model "0". It causes no changes to occur to your color scheme. The remaining 10 models are grouped in pairs:
The odd-numbered version of each pair transforms only those parts of your
program that are entirely black and white. Any character position that contains
any color will be left unchanged.
The even-numbered version of the pair performs similarly to the odd-numbered
version, except that the rules are always applied regardless of color. When
selecting a COLOR-MODEL, you can ignore the even-numbered models if you are
satisfied with the color portions of your program.
COLOR-MODEL settings "7" and "8" most closely match typical Windows programs.