Top
PowerCOBOL V11.0 Reference
FUJITSU Software

4.122 ForeColor Property

Description:

Defines the text color for the control or object.

Used in control(s):

Controls

CheckBox

ComboBox

CommandButton

Edit

DriveList

FileList

FolderList

Frame

Graph

GroupBox

Label

ListBox

ListView

OptionButton

ProgressIndicator

StaticText

Table

TextBox

Toolbar

Objects

Form

TableCell

Values:

Refer to "Appendix A. Color Constants" and OLE_COLOR described in "Appendix C. Data Types" for more information on color values.

CommandButton

It is only effective when the UseSystemColor property is False.

Graph

The value is used as the default color for the control.

You should use the DataColor array when you set or refer to the colors of the data elements.

TableCell

If the ForeColor property is set to a different value from the Table control's ForeColor property, the cell is painted in the value of the TableCell object's ForeColor property.

If the ForeColor property is set to the same value as the Table control's ForeColor property, the cell's ForeColor property is initialized and painted in the value of the Table control 's ForeColor property.

Table

If the ForeColor property of a TableCell object is set, the cell is not painted in the value of the Table control's ForeColor property, it is painted in the value of the TableCell object's ForeColor.

Toolbar

It is only effective when the UseSystemColor property is False and the Style property is
"1-Flat" or "2-FlatList".

Default value:

Form

System's Window Text color.

TableCell

Table control's ForeColor property

Others

Container's ForeColor property.

COBOL picture:

S9(9) COMP-5

OLE data type:

OLE_COLOR

Design time access:

TableCell

Not accessible.

Others

Set and reference.

Execution time access:

Set and reference.

Backward compatibility attribute:

POW-TEXTCOLOR PIC X(4)