DataColumn.ChangeBackground Method | |
Set a new background brush for this data column.
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD ChangeBackground(
oBrush,
kWhere
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual ChangeBackground(
Usual oBrush = default,
Usual kWhere = default
)
Request Example
View SourceParameters
- oBrush (Optional)
- Type: Usual
The new background brush to be used. - kWhere (Optional)
- Type: Usual
Indicates what part of the data column should be repainted, specified as one of the following constants:
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. |
Return Value
Type:
Usual
The brush previously assigned to the changed area.
Remarks
The setting specified here supersedes, for this data column, the setting set in this data column's owner data browser. Although the button and caption area can be specified, the method refers only to this column.
As a rule, initial settings are picked up from the standard settings of the environment—under Windows, colors are set in the Control Panel. Note that while it is possible to alter the color of the caption and column caption areas, this is not recommended when a 3-dimensional, sculpted, "button look" is used—end users can be confused if buttons don't look like buttons.
Examples
To set the background of the text area yellow and column caption blue:
1oDataColumn:ChangeBackground(Brush{Color{COLORYELLOW}}, GBLTEXT)
2oDataColumn:ChangeBackground(Brush{Color{COLORBLUE}},GBLCOLCAPTION)
See Also