Click or drag to resize

DataColumn.ChangeTextColor Method

X#
Set a new pen in a particular area of this data column.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD ChangeTextColor(
	oColor,
	kWhere
) AS USUAL CLIPPER
Request Example View Source

Parameters

oColor (Optional)
Type: Usual
The new color to be used.
kWhere (Optional)
Type: Usual
Indicates what part of the data column should be changed, specified as one of the following constants.

Return Value

Type: Usual
The pen previously assigned to the changed area.
Remarks
Possible values for kColor
ConstantColor
COLORBLACKBlack
COLORBLUEBlue
COLORCYANCyan
COLORGREENGreen
COLORMAGENTAMagenta
COLORREDRed
COLORWHITEWhite
COLORYELLOWYellow
Possible values for kWhere
ConstantDescription
GBLCOLCAPTIONThe column caption area.
GBLHITEXTHighlighted (selected) text in the data area.
GBLTEXTText in the data display area. This is the default.
As a rule, initial settings are picked up from the standard settings of the environment—under Windows, colors are set in the Control Panel. The default is picked up from the standard settings of the environment; for example, under Windows the text color of buttons is set with the Control Panel. Although the button and caption area can be specified, the method refers only to this column.
Examples
To set the text color in the main area blue and caption text red:
X#
1oDataColumn:ChangeTextColor(Color{COLORBLUE},GBLTEXT)
2oDataColumn:ChangeTextColor(Color{COLORRED},GBLCOLCAPTION)
See Also