Page 1 of 1
Calendar Series - Time Table
Posted: Fri Sep 12, 2014 2:18 pm
by 16467044
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
Re: Calendar Series - Time Table
Posted: Mon Sep 15, 2014 10:12 am
by yeray
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;
Re: Calendar Series - Time Table
Posted: Mon Sep 15, 2014 10:56 am
by 16467044
Hi,
thank you so much!
I will take this as base for my idea.
Warm Regards,
Cheryll