Programming with Reflection

image\rwnprg32.gif SetColorMap method

 

Syntax object.SetColorMap Attribute, Foreground, Background

 

Description

Assigns colors for screen display.

Arguments

Attribute Argument type: Enumeration
The host attribute (such as plain or underlined text) to be mapped. The values are:

 rcPlainAttribute
rcBlinkAttribute
rcInverseAttribute
rcUnderlineAttribute
rcBoldAttribute (for UNIX and OpenVMS hosts)
rcHalfbrightAttribute (for HP hosts)
rcFunctionKeys (for HP hosts)
rcHotspotAttribute
rcCursorAttribute

 These values (except rcPlainAttribute, rcHotspotAttribute, rcCursorAttribute, and rcFunctionKeys) can be added together to configure colors for combined attributes, such as Bold Inverse and Underline Blink. (You can see samples of text with combined attributes in the Colors tab of the Display Setup dialog box.)

 For example, the following configures inverse blinking text to appear as grey text on a blue background:

      .SetColorMap rcInverseAttribute+rcBlinkAttribute, rcGrey, rcBlue

 Note: Changes made using rcCursorAttribute take effect only if the ColorCursor property is set to True.

 

Foreground Argument type: Enumeration
The text (foreground) color being assigned. The possible values are:

 rcWhite
rcGrey
rcRed
rcBlue
rcGreen
rcYellow
rcCyan
rcMagenta
rcBlack
rcDkGrey
rcDkRed
rcDkBlue
rcDkGreen
rcDkYellow
rcDkCyan
rcDkMagenta

Background Argument type: Enumeration
The background color being assigned. The possible values are the same as for Foreground.

 

 

image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command