Page 1 of 1

TChartSeries->Clicked(X,Y)

Posted: Mon Mar 06, 2006 1:26 pm
by 9340791
Hi. How can I know when mouse cursor entered series without recourse function Clicked(X,Y) ?

Posted: Mon Mar 06, 2006 3:27 pm
by narcis
Hi vvv,

You can use series OnMouseEnter and OnMouseLeave events:

Code: Select all

void __fastcall TForm1::Series1MouseEnter(TObject *Sender)
{
        Chart1->Title->Text->Clear();
        Chart1->Title->Text->Add("Mouse in Series");
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Series1MouseLeave(TObject *Sender)
{
        Chart1->Title->Text->Clear();
        Chart1->Title->Text->Add("Mouse out of Series");
}

Message

Posted: Tue Mar 07, 2006 4:22 pm
by 9340791
Event OnMouseEnter also called Clicked(X,Y).

I`m setting specific zoom so as no points are visible.
And now How can I know when mouse cursor entered series?