Calendar Series - Time Table

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Chartist
Newbie
Newbie
Posts: 60
Joined: Wed Sep 18, 2013 12:00 am

Calendar Series - Time Table

Post by Chartist » Fri Sep 12, 2014 2:18 pm

Hi,

Steema offers a TCalendarSeries
Is there a way to plan not just the days, but the hours of each day as well?
If yes: how?
if not: is there an alternative?

Thanks,
Cheryll
Cheryll

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

Re: Calendar Series - Time Table

Post by Yeray » Mon Sep 15, 2014 10:12 am

Hello Cheryll,
Chartist wrote:Is there a way to plan not just the days, but the hours of each day as well?
I'm afraid not.
How were you thinking to display the hours?
Here it is a simple example showing an Annotation with some text when a concrete date is clicked:

Code: Select all

uses TeeTools, DateUtils;

var annot1: TAnnotationTool;

procedure TForm1.FormCreate(Sender: TObject);
begin
  annot1:=Chart1.Tools.Add(TAnnotationTool) as TAnnotationTool;
  annot1.Active:=false;
end;

procedure TForm1.Series1Change(Sender: TCalendarSeries;
  var Value: TDateTime);
begin
  if (Value=Today) then
  begin
    annot1.Active:=true;
    annot1.Text:='9:00 - First Task' + #13 + '10:00 - Second Task';
    annot1.Left:=Chart1.GetCursorPos.X;
    annot1.Top:=Chart1.GetCursorPos.Y;
  end
  else
    annot1.Active:=false;
end;
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

Chartist
Newbie
Newbie
Posts: 60
Joined: Wed Sep 18, 2013 12:00 am

Re: Calendar Series - Time Table

Post by Chartist » Mon Sep 15, 2014 10:56 am

Hi,

thank you so much!
I will take this as base for my idea.

Warm Regards,
Cheryll
Cheryll

Post Reply