Color: Difference between revisions
No edit summary |
|||
Line 7: | Line 7: | ||
COLOR [WARNING]#FFFF00 | COLOR [WARNING]#FFFF00 | ||
Then you can use | The keyword color means that the label in square brackets, in this case WARNING, will signify the hex color #FFFF00. Then you can use the label in place of the actual color CODES in your programs. | ||
Color may be used with the [[config]] command, or used with the [[execute]] statement. | Color may be used with the [[config]] command, or used with the [[execute]] statement. | ||
Line 13: | Line 13: | ||
"[[Status]] Colors" lists all the color statements that you have in effect. | "[[Status]] Colors" lists all the color statements that you have in effect. | ||
The COLOR specification controls the use of color as specified in INPUT FIELDS, RINPUT FIELDS and PRINT FIELDS statements. | The COLOR specification controls the use of color as specified in [[INPUT FIELDS]], [[RINPUT FIELDS]] and [[PRINT FIELDS]] statements. | ||
====Syntax==== | ====Syntax==== |
Latest revision as of 20:19, 27 July 2015
The Color BRConfig.sys specification is available as of 4.18.
It can be used to create color attributes (shortcuts) with:
Comments and Example
COLOR [WARNING]#FFFF00
The keyword color means that the label in square brackets, in this case WARNING, will signify the hex color #FFFF00. Then you can use the label in place of the actual color CODES in your programs.
Color may be used with the config command, or used with the execute statement.
"Status Colors" lists all the color statements that you have in effect.
The COLOR specification controls the use of color as specified in INPUT FIELDS, RINPUT FIELDS and PRINT FIELDS statements.
Syntax
COLOR [<label>] <name or #hex>
Start-up Default
Act upon color attributes when the monitor in use at start-up is a color monitor; ignore color attributes when the start-up monitor is monochrome.
Parameters
The "N" parameter directs Business Rules! to ignore color attributes in PRINT FIELDS, INPUT FIELDS and RINPUT FIELDS statements.
The "Y" parameter directs Business Rules! to act upon indicated color attributes, even if the hardware is monochrome.
Technical Considerations
- 1.) The CONFIG command can be used during program execution to override the BRConfig.sys file's COLOR specification.
- 2.) When COLOR is not included in the BRConfig.sys file, Business Rules! automatically utilizes color and monochrome attributes according to the type of monitor being utilized. With no COLOR specification in the BRConfig.sys, execution of the following program line would cause monochrome monitors to display UH (underline and highlight), whereas color monitors would show R:B (red on blue background):
10000 INPUT FIELDS "4,4,C 20,UH/R:B":X$
- 3.) Perhaps the most useful application of the COLOR specification is the testing of monochrome or color attributes when working on a screen of the opposite type.