| RMC_AddToolTips function. | ||
| Add ToolTips to a chart which draws on it's own DC | ||
| Syntax | ||
| nResult (LONG) = RMC_AddToolTips( ByVal nCtrlId (LONG), ByVal hWnd (LONG), Optional ByVal nWidth (LONG) ) |
||
| Parameter | ||
| nCtrlId (LONG) | ||
| Unique ID of the chart. | ||
| hWnd (LONG) | ||
| Handle of the Window/Form/Control, whose DC was used when creating the chart. | ||
| nWidth (LONG) | ||
| Width of ToolTips in pixel. If 0, the ToolTips are added, but not yet activated. Call RMC_SetToolTipWidth, when you want to switch them on. | ||
| Return value | ||
| 0 | ||
| No error, function succeeded. | ||
| RMC_ERROR_CTRLID | ||
| Wrong control ID (0 or no chart with this control ID was found). | ||
| Remarks | ||
| Use this function only in case you draw on your own DC. See ToolTips for more informations. | ||
| Example | ||
' Example for VB6: Create your chart: nRetVal = RMC_CreateChartOnDC(Picture1.hDC, ID_RMC1, 0, 0, 600, 450, Azure, RMC_CTRLSTYLEFLAT, False, "") ' Add ToolTips: nRetVal =RMC_AddToolTips(ID_RMC1, Picture1.hWnd,100) . . . ' Later, you could disable the ToolTips: nError = RMC_SetToolTipWidth(ID_RMC1,0) | ||