selBackColor

Type: Integer

Availability: Read or write at any time (JadeTextEdit); read or write at run time only (JadeRichText)

The selBackColor property of the JadeRichText and JadeTextEdit controls specifies the background color of text selected in the text editor. The selBackColor property is not available at design time for JadeRichText controls.

The default background color is the Window class system highlight color represented by the Window class Color_Highlight constant.

The default value of the JadeTextEdit class is represented by the ATTRIB_DEFAULT (-1) JadeTextEdit class constant.

The value of the property in a JadeRichText control can be an RGB value in the range 0 through 0xFFFFFF or it can be one of the JadeRichText class constants listed in the following table.

JadeRichText Class Constant Value

Comment

CharacterFormat_AutoColor -1

Text is drawn using the text color of the system (the default), with the background of the text drawn with the defined value of the backColor property

CharacterFormat_Undefined #80000000

Selected text contains a mixture of colors (this value cannot be set)

The following code fragments are examples of the JadeRichText class selBackColor property.

rtfControl.selStart := 10;
rtfControl.selLength :=  6;
rtfControl.selBackColor := Red; 
// sets the background color of the characters 10 through 15 in the control to Red

rtfControl.selBackColor := Green;
rtfControl.load("Monday ", JadeRichText.Load_Append);
// sets the background color of the appended text 'Monday' to Green