Page 1 of 1

OnSeriesMouseEnter falsely firing

Posted: Wed Jan 25, 2012 7:48 am
by 10550286
In your constructor have something like this:

Code: Select all

Chart1->AddSeries(new TLineSeries(Chart1));
  Chart1->Series[0]->AddXY(1,1);
  Chart1->Series[0]->AddXY(2,2);
  Chart1->Series[0]->OnMouseEnter = OnSeriesMouseEnter;
  Chart1->BottomAxis->SetMinMax(0,10);
  Chart1->LeftAxis->SetMinMax(0,10);
In the event put whatever you feel like, but I have just put this

Code: Select all

AnsiString Message = Label1->Caption;
  Message += AnsiString(_T("Entering series\n"));
  Label1->Caption = Message;
Run the application.Slowly move your mouse around the series without touching it. You will find the event triggers when the mouse is clearly not touching the line.

Re: OnSeriesMouseEnter falsely firing

Posted: Wed Jan 25, 2012 3:43 pm
by yeray
Hi Sam,

What TeeChart version and IDE are you using?
It seems to work fine for me here with v2011.04 and D7.

Re: OnSeriesMouseEnter falsely firing

Posted: Fri Jan 27, 2012 4:29 am
by 10550286
I'm using TChart v2011.03.30407 - so not very old.
I work with C++BuilderĀ® XE Version 15.0.3890.34076 .

Re: OnSeriesMouseEnter falsely firing

Posted: Fri Jan 27, 2012 9:09 am
by yeray
Hi Sam,

Right, I could reproduce it with your environment but not anymore after upgrading to v2011.04.
I'd suggest you to try it.

Re: OnSeriesMouseEnter falsely firing

Posted: Wed Feb 15, 2012 11:29 pm
by 10550286
Yep, that seemed to fix it, thank you.