Hello,
I've been trying to program the MSChart to show data from a pie chart as tooltips, based on textbox values.
The values are different so it would be nice to see the different values when I hover the mouse over the slice.
I have tried to use the MouseMove property of MSChart with no success. In the code below, if I hover the mouse over any slice of the chart, I get a tooltip popup with the value of text1.
Code:Private Sub MSChart1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) If MSChart1.ColumnLabelIndex = "1" Then MSChart1.ToolTipText = val(text1.text) ElseIf MSChart1.ColumnLabelIndex = "2" Then MSChart1.ToolTipText = val(text2.text) End If End Sub
I tried to do a similar thing with the column property, and the tooltip does not even appear.
I tried to RTF the M for MsChart.hlp but couldn't find any samples or explanations for how to do this behavior.Code:Private Sub MSChart1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) If MSChart1.Column = "1" Then MSChart1.ToolTipText = Val(Text1.Text) ElseIf MSChart1.Column = "2" Then MSChart1.ToolTipText = Val(Text2.Text) End If
I looked for samples online, and looked for samples here as well, but didn't find anything.
Does anyone know how to do this?
Please let me know. Thank you for any feedback.




Reply With Quote