Color: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
The '''Color''' [[BRConfig.sys]] specification is available as of [[4.18]]. It can be used to create color [[Attribute (Config)|attributes]] (shortcuts) with:
The '''Color''' [[BRConfig.sys]] specification is available as of [[4.18]].  


====Syntax====
It can be used to create color [[Attribute (Config)|attributes]] (shortcuts) with:
 
====Comments and Example====


  COLOR [WARNING]#FFFF00
  COLOR [WARNING]#FFFF00
Line 7: Line 9:
Then you can use those in place of the actual color CODES in your programs.
Then you can use those in place of the actual color CODES in your programs.


Color may be used with the [[config]] command.
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.
"[[Status]] Colors" lists all the color statements that you have in effect.
Line 15: Line 17:
====Syntax====
====Syntax====


  COLOR N/Y
  COLOR [<label>] <name or #hex>


====Start-up Default====
====Start-up Default====
Line 35: Line 37:


<noinclude>
<noinclude>
[[Category:Needs Help]]
[[Category:Config]]
[[Category:Config]]
</noinclude>
</noinclude>

Revision as of 20:17, 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

Then you can use those 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.