InputFieldBackColor
property for PowerScript controls
Applies to
RichTextEdit controls
Description
The InputFieldBackColor property sets the color for the background
of input fields in the RichTextEdit control. This item can also be
selected by the user at runtime from the Properties item of the pop-up
menu.
Usage
In a painter
To set the background color of input fields:
-
Select the desired color from the Background Field Color
drop-down list on the Document page of the control’s Properties
view.
To add your own colors to the color drop-down list, select
Design>Custom Colors before displaying the Properties view.
In scripts
The InputFieldBackColor property takes a long (-2 to 16,777,215)
that defines the background color for input fields. The value is a
combination of values for the red, green, and blue components of the
color. If you do not know the long value for the color, choose
Design>Custom Colors to determine the red, green, and blue values and
then call the RGB function to specify the color in a script.
This statement makes the input fields red.
1 |
rte_1.InputFieldBackColor = RGB(255, 0, 0) |