OnSeriesMouseEnter falsely firing
Posted: Wed Jan 25, 2012 7:48 am
In your constructor have something like this:
In the event put whatever you feel like, but I have just put this
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.
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);
Code: Select all
AnsiString Message = Label1->Caption;
Message += AnsiString(_T("Entering series\n"));
Label1->Caption = Message;