QG_SetCaptionFont

QG_SetCaptionFont(areaRef; fontName; fontSize; textFace):error
areaRef Longint QGrid area reference
fontName Text Font name
fontSize Longint Font size
textFace Longint Text style
error Longint Error result

Set the caption font

Parameter areaRef is the QGrid area reference. If areaRef is not a valid QGrid area reference, qg_paramErr error is returned.

Parameters fontName and fontSize specify the name and the size in points of the font.

Parameter textFace is the text style and it can be specified by combining (with addition or bitwise "or") the following 4D constants:

ConstantValue
Plain0
Bold1
Italic2
Underline4

NOTE Support for text styles other than Plain depends on the platform and the font specified with fontName.

When QG_SetCaptionFont is not called for a caption object, QGrid uses the following default text style options:

MacOSWindows
Font name:Lucida GrandeSegoe UI
Size:1010
Style:PlainPlain

Related commands

QG_GetCaptionFont Get the caption font
QG_SetCaptionColors Set the caption colors
QG_SetCaptionAlignment Set the caption text alignment