How to use TCalendarSeries ?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Komar
Newbie
Newbie
Posts: 25
Joined: Thu Feb 10, 2005 5:00 am
Location: Savoie - France

How to use TCalendarSeries ?

Post by Komar » Fri Oct 12, 2007 8:15 am

Hi,

I have a chart with a TCalendarSeries. I would like to get the day/month/year values when I click on a day of the graph.

I've try some events for this series but I can't get this values.

Thanks in advance for your help.

Regards.
Komar

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 Oct 15, 2007 9:14 am

Hi Komar,

Yes, you can do something like this:

Code: Select all

procedure TForm1.Chart1MouseDown(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
var MyClickedDate: TDateTime;
begin
  Series1.ClickedDate(X, Y, MyClickedDate);
  Chart1.Title.Text[0]:=DateTimeToStr(MyClickedDate);
end;
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

Komar
Newbie
Newbie
Posts: 25
Joined: Thu Feb 10, 2005 5:00 am
Location: Savoie - France

Post by Komar » Mon Oct 15, 2007 10:10 am

It's work fine ! :mrgreen:

Thanks for your help.
Komar

Post Reply