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:
Constant | Value |
Plain | 0 |
Bold | 1 |
Italic | 2 |
Underline | 4 |
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:
MacOS | Windows | |
Font name: | Lucida Grande | Segoe UI |
Size: | 10 | 10 |
Style: | Plain | Plain |
Related commands
QG_GetCaptionFont | Get the caption font |
QG_SetCaptionColors | Set the caption colors |
QG_SetCaptionAlignment | Set the caption text alignment |