Programming with Reflection
SetColorRGB method
Syntax object.SetColorRGB Color, Red, Green, Blue
Reflection creates displays using a palette of 16 colors. (You can view these colors on the Colors tab in the Display Setup dialog box.) This method adjusts the appearance of a specified color from the palette. Color adjustment is made by assigning a value each of three basic color componentsred, green, and blue.
For example, the following statement redefines red and makes it black, by specifying zero for all color components. (After Reflection executes this command, you will see two black tiles in the Text and Background areas on the Color tab in the Display Setup dialog boxthe original black tile, and the one that had originally been red.)
Session.SetColorRGB rcRed, 0, 0, 0
Restoring color defaults with RestoreDefaluts returns the red color to its original definition:
Session.RestoreDefaults rcColors
Changes you make to a color affect the appearance of any host attributes configured to use that color. To configure host attribute colors programmatically, use the SetColorMap method. (Changes you make to colors using SetColorRGB also affect text configured using the Color tab in the Display Setup dialog box.)
Color Argument type: Enumeration
The color being adjusted. (Note: Changes you make using SetColorRGB may mean that the constant rcRed is no longer associated with a red color.) The possible values are:
rcWhite
rcGrey
rcRed
rcBlue
rcGreen
rcYellow
rcCyan
rcMagenta
rcBlack
rcDkGrey
rcDkRed
rcDkBlue
rcDkGreen
rcDkYellow
rcDkCyan
rcDkMagenta
Red Argument type: Integer
An integer value indicating the degree of red saturation you want. This can be any value between 0 and 255.
Green Argument type: Integer
An integer value indicating the degree of green saturation you want. This can be any value between 0 and 255.
Blue Argument type: Integer
An integer value indicating the degree of blue saturation you want. This can be any value between 0 and 255