MTblSetColumnFont

Functions ›› MTblSet... ›› MTblSetColumn... ››
Parent Previous Next

bOk = MTblSetColumnFont( hWndCol, sName, nSize, nEnh, nFlags )

Sets a column's font.

Parameters
hWndCol
Window Handle: Handle of the column

sName
String: Font name. Specify MTBL_FONT_UNDEF_NAME to leave the name undefined.

nSize
Number: Font size. Specify MTBL_FONT_UNDEF_SIZE to leave the size undefined.

nEnh
Number:Any combination of the following enhancements: FONT_EnhBold, FONT_EnhItalic, FONT_EnhStrikeOut and FONT_EnhUnderline. Specify MTBL_FONT_UNDEF_ENH to leave the enhancements undefined.

nFlags
Number: Any combination of the following flags:

MTSF_REDRAW

Redraws the column

Return
Boolean: TRUE if successful or FALSE if an error occurs

Example
In this example a column's font is set to Arial, size 10. The enhancements are undefined and the column is redrawn:

Call MTblSetColumnFont( hWndCol, "Arial", 10, MTBL_FONT_UNDEF_ENH, MTSF_REDRAW )

See also
Custom fonts and colors

Created with the Personal Edition of HelpNDoc: Easily create HTML Help documents