DataBrowser.ChangeTextColor Method | |
Set a new pen in a particular area of the data browser.
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 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
Constant | Color |
---|
COLORBLACK | Black |
COLORBLUE | Blue |
COLORCYAN | Cyan |
COLORGREEN | Green |
COLORMAGENTA | Magenta |
COLORRED | Red |
COLORWHITE | White |
COLORYELLOW | Yellow |
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. |
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:
1oDataBrowser:ChangeTextColor (Color{COLORBLUE},GBLTEXT)
2oDataBrowser:ChangeTextColor (Color{COLORRED},GBLHITEXT)
See Also