ToolTips are available for the data points (e.g. the bars, the symbols of line charts, the segments of pies)
of your chart. If they are enabled, every time the mouse pointer moves over a data point, either the value of
this point pops up (default), or a custom text, which you have added before for this data point (see function
RMC_SetCustomToolTipText()).
The way you can use ToolTips depends on how you create your chart:
- If you use RMC_CreateChart(), you can pass with the last parameter the desired
width of the ToolTips in pixel (e.g. 100) - that's all you have to do. Or you can use
RMC_SetToolTipWidth() before you draw the chart or at any time later in your programm
to switch ToolTips on or off.
- If you use RMC_CreateChartFromFile(), ToolTips will be enabled if the
chart, which wrote the RMC-file or string, had ToolTips enabled. Of course
you can immediately before drawing the chart (or at any time later) switch the ToolTips on or off with
RMC_SetToolTipWidth()
- If you use RMC_CreateChartOnDC() or
RMC_CreateChartFromFileOnDC(), things are a little bit more laborious.
In both cases you first must call function RMC_AddToolTips() befor you draw your chart.
And you are "responsible" for invoking the ToolTips: you must call function RMC_ShowToolTips()
every time the mouse cursor moves over your chart. The best place to do this is of course your Callback function, catching
the WM_MOUSEMOVE message, or, if you use VB6, the MouseMove event of the form or control, whose DC you use
to create the chart.
With function RMC_SetToolTipWidth() you may switch the ToolTips
on/off during the lifetime of your chart, once you've added them.
You'll find some examples how to use ToolTips in the demo projects.
|