MTblSetTipOpacity

MTblSetTipOpacity

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

bOk = MTblSetTipOpacity( hWndParam, nParam, nType, nOpacity )

Sets a tooltip's opacity ( alpha transparency ).

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.

nOpacity
Number: The opacity in a range from 0 ( = fully transparent ) to 255 ( = fully opaque ) or NUMBER_Null to leave the opacity undefined.

Return
Boolean: TRUE if successful or FALSE if an error occurs and/or nOpacity is out of range

Example
In this example we set a cell's tooltip opacity to 70%:

Call MTblSetTipOpacity( hWndCol, nRow, MTBL_TIP_CELL, SalNumberRound( 70 * 255 / 100 ) )

The result looks like that:

Remarks
This works only with Win2k or greater.
You can't set the default opacity to undefined.

See also
Tooltips

Created with the Personal Edition of HelpNDoc: Easily create Web Help sites