Setting the Min and Max for a Gantt series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
SpringerRider
Newbie
Newbie
Posts: 5
Joined: Fri Sep 28, 2007 12:00 am

Setting the Min and Max for a Gantt series

Post by SpringerRider » Fri Feb 27, 2009 8:32 pm

I have a TdbChart with one series, a Gantt. I am also using the Gantt drag tool. The Gantt is built on a Date Time Line.
I would like to set the chart limits to one day. Even before the first Gantt is placed on the chart, I would like the bottom axis to show the hours for one day and not permit the user to go outside of that range.
Right now, my users are dragging a Gantt into days ahead or behind and are becoming totally lost.

What I would like to do is set the extents base on a DateTimer Picker.


Thanks

D 2006 Win 32
Tchart 8.02

SpringerRider
Newbie
Newbie
Posts: 5
Joined: Fri Sep 28, 2007 12:00 am

Can anyone answer this??

Post by SpringerRider » Thu Apr 02, 2009 8:31 pm

If it cannot be done, than woudl someone say so? This is not a very bizarre question!!!

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

Post by Yeray » Fri Apr 03, 2009 9:52 am

Hi SpringerRider,

First of all I'd like to apologize for the delay; I'm afraid we missed this thread.

Regarding your question, have you tried setting your custom min and max for the bottom axis?

Code: Select all

procedure TForm1.Button1Click(Sender: TObject);
var day: TDateTime;
begin
  day := Today+5;
  Chart1.Axes.Bottom.SetMinMax(day, day+1);
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

Post Reply