Get Help For MouseEnter Event
Posted: Tue Oct 26, 2004 1:15 pm
How to show the series data when the mouse is point to Series lists?
I develop windows based application Using C#.Net, and includes the TChart component into the form - named it as ImagesChart. I raise MouseEnter Event in ImagesChart to show the series data as below code, but the program return nothing for valueindex, and the label show nothing.
private void ImagesChart_MouseEnter(object sender, System.EventArgs e)
{
int valueIndex=-1;
Steema.TeeChart.TChart tmp;
tmp= (Steema.TeeChart.TChart) sender;
valueIndex= tmp.Clicked(ImagesChart.PointToClient(Cursor.Position));
if (valueIndex != -1 )
{
headerValue = ImagesChart.Series[0].YValues[valueIndex].ToString ();
}
lblCurrentValue.Text = headerValue;
}
please advise the correct way to get the series data when the mouse over the series chart.
Thanks
I develop windows based application Using C#.Net, and includes the TChart component into the form - named it as ImagesChart. I raise MouseEnter Event in ImagesChart to show the series data as below code, but the program return nothing for valueindex, and the label show nothing.
private void ImagesChart_MouseEnter(object sender, System.EventArgs e)
{
int valueIndex=-1;
Steema.TeeChart.TChart tmp;
tmp= (Steema.TeeChart.TChart) sender;
valueIndex= tmp.Clicked(ImagesChart.PointToClient(Cursor.Position));
if (valueIndex != -1 )
{
headerValue = ImagesChart.Series[0].YValues[valueIndex].ToString ();
}
lblCurrentValue.Text = headerValue;
}
please advise the correct way to get the series data when the mouse over the series chart.
Thanks