MTblSetTipFont

MTblSetTipFont

Functions ›› MTblSet... ›› MTblSetTip... ››
Parent Previous Next

bOk = MTblSetTipFont( hWndParam, nParam, nType, sName, nSize, nEnh )

Sets a tooltip's font.

Parameters
hWndParam
Window Handle: Depends on nType. See Tooltip types and function parameters for further details.

nParam
Number: Depends on nType. See Tooltip types and function parameters for further details.

nType
Number:The tooltip type. See Tooltip types and function parameters for further details.

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.

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

Example
In this example we set a cell's tooltip font to Arial 10 bold:

Call MTblSetTipFont( hWndCol, nRow, MTBL_TIP_CELL, "Arial", 10, FONT_EnhBold )

Remarks
You can't set the default name, size or enhancements to undefined.

See also
Tooltips
Custom fonts and colors

Created with the Personal Edition of HelpNDoc: Generate Kindle eBooks with ease