DataColumn.ChangeTextColor Method | |
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
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual ChangeTextColor(
Usual oColor = default,
Usual kWhere = default
)
Request Example
View SourceParameters
- 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
Constant | Color |
---|
COLORBLACK | Black |
COLORBLUE | Blue |
COLORCYAN | Cyan |
COLORGREEN | Green |
COLORMAGENTA | Magenta |
COLORRED | Red |
COLORWHITE | White |
COLORYELLOW | Yellow |
Possible values for kWhere
Constant | Description |
---|
GBLCOLCAPTION | The column caption area. |
GBLHITEXT | Highlighted (selected) text in the data area. |
GBLTEXT | Text 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:
1oDataColumn:ChangeTextColor(Color{COLORBLUE},GBLTEXT)
2oDataColumn:ChangeTextColor(Color{COLORRED},GBLCOLCAPTION)
See Also