connecting Gantt bars dynamically

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Camara
Newbie
Newbie
Posts: 2
Joined: Fri Jul 23, 2004 4:00 am

connecting Gantt bars dynamically

Post by Camara » Wed Sep 08, 2004 12:44 pm

I have a series of tasks that I add to a gantt series through code.
Some tasks are dependent on other tasks.
How do I link one gantt task(bar) to another (a dependent task) and get it to show the connecting line.

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Wed Sep 08, 2004 2:39 pm

You can use the following code to connect two gannt bars with line:

Code: Select all

  Gantt1.FillSampleValues(6)  
  Gantt1.NextTasks(1) = 5 'Connect 2nd bar to 6th bar
Marjan Slatinek,
http://www.steema.com

Camara
Newbie
Newbie
Posts: 2
Joined: Fri Jul 23, 2004 4:00 am

Post by Camara » Thu Sep 09, 2004 7:14 am

Thank you, I'll give it a try...

I thought it might have been something to do with the NextTasks, but there wasn't any info in the help file.

Pep
Site Admin
Site Admin
Posts: 3273
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Sep 09, 2004 9:44 am

Hi,
I thought it might have been something to do with the NextTasks, but there wasn't any info in the help file.
Yes, you're correct, I've writed down to add info for the next releases.
Thanks ! .

Post Reply