Click or drag to resize

DataBrowser.ChangeFont Method

X#
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
Request Example View Source

Parameters

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:
ConstantDescription
GBLCOLCAPTIONThe column caption area.
GBLHITEXTHighlighted (selected) text in the data area.
GBLTEXTText 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:
X#
1oDataBrowser:ChangeFont(Font{FONTSWISS8},GBLTEXT)
2oDataBrowser:ChangeFont(Font{FONTROMAN14},GBLCOLCAPTION)
See Also