| RMC_SetCustomToolTipText function. | ||
| Set your own ToolTipText for a data point | ||
| Syntax | ||
| nResult (LONG) = RMC_SetCustomToolTipText( ByVal nCtrlId (LONG), ByVal nRegion (LONG), ByVal nSeriesIndex (LONG), ByVal nDataIndex (LONG), ByRef sText (ASCIIZ), ) |
||
| Parameter | ||
| nCtrlId (LONG) | ||
| Unique ID of the chart control, to which the series belongs. | ||
| nRegion (LONG) | ||
| Index of the region, to which the series belongs. | ||
| nSeriesIndex (LONG) | ||
| Index of the series. | ||
| nDataIndex (LONG) | ||
| Index of the data point. Index starts always with 1. | ||
| sText (ASCIIZ) | ||
| Your ToolTipText for this data value. | ||
| Return value | ||
| 0 | ||
| No error, function succeeded. | ||
| RMC_ERROR_CTRLID | ||
| Wrong control ID (0 or no chart with this control ID was found). | ||
| RMC_ERROR_WRONGREGION | ||
| The region index is inexistent in the chart control. | ||
| RMC_ERROR_SERIESINDEX | ||
| The series index is not valid (No series with this index exists in this region). | ||
| Remarks | ||
| As a default, the data value of each data point builds the ToolTipText. With this function you can overwrite this default for each data point or only for single points. You can set the text either before drawing the chart, or at any time later in your program. If you want to delete a previously added text, just pass an empty string. | ||
| 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)
.
' Add a Pie with 5 segments:.
nRetVal = RMC_AddGridlessSeries(ID_RMC1, 1, aData(0), 5, ......)
' Add your own ToolTipText for the third segment:.
nRetVal = RMC_SetCustomToolTipText(ID_RMC1, 1, 1, 3, "Third segment" + Chr(13) + Chr(10) + "Value: 50" _
+ Chr(13) + Chr(10) + "Color: Blue")
| ||