OnSeriesMouseEnter falsely firing

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Sam F
Newbie
Newbie
Posts: 45
Joined: Wed Sep 10, 2008 12:00 am

OnSeriesMouseEnter falsely firing

Post by Sam F » Wed Jan 25, 2012 7:48 am

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.

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: OnSeriesMouseEnter falsely firing

Post by Yeray » Wed Jan 25, 2012 3:43 pm

Hi Sam,

What TeeChart version and IDE are you using?
It seems to work fine for me here with v2011.04 and D7.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Sam F
Newbie
Newbie
Posts: 45
Joined: Wed Sep 10, 2008 12:00 am

Re: OnSeriesMouseEnter falsely firing

Post by Sam F » Fri Jan 27, 2012 4:29 am

I'm using TChart v2011.03.30407 - so not very old.
I work with C++Builder® XE Version 15.0.3890.34076 .

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: OnSeriesMouseEnter falsely firing

Post by Yeray » Fri Jan 27, 2012 9:09 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Sam F
Newbie
Newbie
Posts: 45
Joined: Wed Sep 10, 2008 12:00 am

Re: OnSeriesMouseEnter falsely firing

Post by Sam F » Wed Feb 15, 2012 11:29 pm

Yep, that seemed to fix it, thank you.

Post Reply