ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Gantt Chart functions
  • Properties specific to GanttLink variables
  • Notes
  • Using GanttLink variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
GanttLink (Variable type)
In french: LienGantt
The GanttLink type is used to define the advanced characteristics of a link between two tasks of a Gantt chart. You can define and change the characteristics of this link using different WLanguage properties.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Récupération de tous les liens qui pointent sur "ID1"
tabLien is array of GanttLink
tabLien = GanttListLink(COL_Gantt, "ID1")
Lien is GanttLink
FOR EACH Lien OF tabLien
	Trace("Lié à " + Lien.SourceID)
END
Properties

Properties specific to GanttLink variables

The following properties can be used to handle a link between two Gantt tasks:
Property nameType usedEffect
DestinationIDCharacter stringIdentifier of the target task. This identifier corresponds to the ID property defined in the GanttTask variable.
SourceIDCharacter stringIdentifier of the source task. This identifier corresponds to the ID property defined in the GanttTask variable.
TypeInteger constantType of link. The available types of links are as follows:
  • tlgStartStart Start-to-start link: the destination task cannot start before the source task has started.
  • tlgStartFin Start-to-finish link: the destination task cannot finish before the source task has started (rare case).
  • tlgFinADébut (default value): End-to-start link: the destination task cannot start before the source task has finished.
  • tlgFinAFin End-to-end link: the destination task cannot end before the source task has finished.
Remarks

Notes

  • A link between 2 tasks is represented by an arrow.
  • This type of variable:
  • An "End to Start" type link is created by default between the two tasks: the task corresponding to the IDSource property must be finished for the IDDestination task can start.
  • According to their types, the links are drawn on the start or end borders of the tasks.

Using GanttLink variables

GanttLink variables are used by the following functions:
GanttAddLinkCreates an "End to Start" link between two tasks displayed in a Gantt Chart column found in a Table or TreeView Table control.
GanttDeleteLinkRemoves links from a Gantt Chart column in a Table or TreeView Table control.
GanttListLinkLists the links in a Gantt Chart column in a Table or TreeView Table control.
Related Examples:
WD Gantt Complete examples (WINDEV): WD Gantt
[ + ] The "WD Gantt" example presents an advanced use of the Gantt Chart control.
This example is used to create a Gantt chart with tasks, links, cumulative tasks and milestones.
The tasks can be edited in a specific window.
The created chart can be saved in a file and reloaded thereafter.
The Gantt control Unit examples (WINDEV): The Gantt control
[ + ] Using a Gantt Chart control
Minimum version required
  • Version 19
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help