TChartSeries->Clicked(X,Y)

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
vvv
Newbie
Newbie
Posts: 9
Joined: Mon Jan 31, 2005 5:00 am
Location: Donetsk, Ukraine
Contact:

TChartSeries->Clicked(X,Y)

Post by vvv » Mon Mar 06, 2006 1:26 pm

Hi. How can I know when mouse cursor entered series without recourse function Clicked(X,Y) ?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Mar 06, 2006 3:27 pm

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");
}
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

vvv
Newbie
Newbie
Posts: 9
Joined: Mon Jan 31, 2005 5:00 am
Location: Donetsk, Ukraine
Contact:

Message

Post by vvv » Tue Mar 07, 2006 4:22 pm

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?

Post Reply