Tooltip when mouse over point (not line)

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Wicket
Newbie
Newbie
Posts: 20
Joined: Mon Jan 15, 2007 12:00 am

Tooltip when mouse over point (not line)

Post by Wicket » Tue Mar 20, 2007 6:32 am

I'm using Line series with diamond 'points' in my chart. The chart have several series with several 'points' on each serie.

Now, what I'm interested in doing is giving a tooltip showing the X and Y value of the point when the mouse is above a point (or very close to one), but NOT when the mouse is over the line (between two points).

Bu using the series.Clicked(x, y)... in the MouseMove event, I was able to determine when the mouse is over a line, but as I said, I want to know if the mouse is over a point on the line.

Is this possible?

Regards Andreas

Marc
Site Admin
Site Admin
Posts: 1265
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Tue Mar 20, 2007 7:49 pm

Hello Andreas,

You could use the ClickableLine property.

Eg.

Code: Select all

private void Form1_Load(object sender, EventArgs e)
{
  line1.Pointer.Visible = true;
  line1.FillSampleValues(10);
  line1.ClickableLine = false;
}

private void tChart1_MouseMove(object sender, MouseEventArgs e)
{
  if (line1.Clicked(e.X, e.Y) != -1)
  {
    //do something ... only triggered over points
  }
  else
  {
    //clear any custom content 
  }
}
Regards,
Marc Meumann
Steema Support

Post Reply