DataBrowser.ChangeFont Method | |
Set a new font in a particular area of the data browser.
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD ChangeFont(
oFont,
kWhere
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual ChangeFont(
Usual oFont = default,
Usual kWhere = default
)
Request Example
View SourceParameters
- oFont (Optional)
- Type: Usual
The new font to be used. - kWhere (Optional)
- Type: Usual
Indicates what part of the browser should be changed, 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 font previously assigned to the changed area.
Remarks
The font can be set for different parts of the data browser as a whole, but not for individual columns. Initially, the default font is extracted from the browser's owner window.
Examples
To use a Helvetica-type font in the text area and a bold version of the same font in the column caption area:
1oDataBrowser:ChangeFont(Font{FONTSWISS8},GBLTEXT)
2oDataBrowser:ChangeFont(Font{FONTROMAN14},GBLCOLCAPTION)
See Also