Click or drag to resize

DataBrowser.ChangeTextColor Method

X#
Set a new pen in a particular area of the data browser.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
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 browser should be changed, specified as one of constants in the table below

Return Value

Type: Usual
The pen previously assigned to the changed area.
Remarks
Values for kColor
ConstantColor
COLORBLACKBlack
COLORBLUEBlue
COLORCYANCyan
COLORGREENGreen
COLORMAGENTAMagenta
COLORREDRed
COLORWHITEWhite
COLORYELLOWYellow
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.
The text color can be set for different parts of the data browser as a whole, but not for individual columns. To set the color for individual columns, use DataColumn:ChangeTextColor(). As a rule, initial settings are picked up from the standard settings of the environment—under Windows, colors are set in the Control Panel.
Examples
To set the text color in the main area to blue and highlighted text to red:
X#
1oDataBrowser:ChangeTextColor (Color{COLORBLUE},GBLTEXT)
2oDataBrowser:ChangeTextColor (Color{COLORRED},GBLHITEXT)
See Also