| RMC_ShowToolTips function. | ||
| Triggers painting of a ToolTip | ||
| Syntax | ||
| nResult (LONG) = RMC_ShowToolTips( ByVal nCtrlId (LONG), ByVal nXPosition (LONG), ByVal nYPosition (LONG) ) |
||
| Parameter | ||
| nCtrlId (LONG) | ||
| Unique ID of the chart control. | ||
| nXPosition (LONG) | ||
| Current X-position of the mouse pointer. | ||
| nYPosition (LONG) | ||
| Current Y-position of the mouse pointer. | ||
| Return value | ||
| 0 | ||
| No error, function succeeded. | ||
| RMC_ERROR_CTRLID | ||
| Wrong control ID (0 or no chart with this control ID was found). | ||
| Remarks | ||
|
Note: This function is only necessary, if you paint your chart on your own DC !
See ToolTips for more informations. Every time the mouse pointer moves over the chart, you must call this function to trigger the painting of the ToolTips. If you use a development system, which provides a Callback function, you must catch the WM_MOUSEMOVE message and call RMC_ShowToolTips with the loword and highword values of lParam as arguments. In VB place the function into the MouseMove event of the Form or Control, on whose DC you paint. | ||
| 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) . . . Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Dim nRetVal As Long ' In case we've added ToolTips, show them nRetVal = RMC_ShowToolTips(ID_RMC1, X, Y) End Sub | ||