PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Creates an "End to Start" link between two tasks displayed in a Gantt Chart column found in a Table (or TreeView Table) control.
Example
// Création des tâches puis du lien
t1 is GanttTask
t1.ID = "T1"
t2 is GanttTask
t2.ID = "T2"
GanttAddLink(COL_Gantt, t1.ID, t2.ID)
 
// Autre syntaxe en spécifiant le type du lien
GanttAddLink(COL_Gantt, t1.ID, t2.ID, gltEndToStart)
// Création d'un lien via une variable de type LienGantt
Lien is GanttLink
Lien.SourceID = "T1"
Lien.DestinationID = "T2"
Lien.Type = gltEndToStart
GanttAddLink(COL_Gantt, Lien)
Syntax

Creating a link between two existing tasks Hide the details

GanttAddLink(<Gantt column> , <Identifier of Source Task> , <Identifier of Destination Task> [, <Type of Link>])
<Gantt column>: Character string (with or without quotes)
Name of Gantt Chart column (found in a Table or TreeView Table control) to use.
<Identifier of Source Task>: Character string (with quotes)
Identifier of the source task of the link.
<Identifier of Destination Task>: Character string (with quotes)
Identifier of the destination task of the link.
<Type of Link>: Integer constant
Type of link to add:
gltStartToStart"Start to Start" link: The destination task cannot start as long as the source task is not started.
gltStartToEnd"Start to End" link: The destination task cannot end as long as the source task is not started (rare case).
gltEndToStart
(default value)
"End to Start" link: The destination task cannot start as long as the source task is not ended.
gltEndToEnd"End to End" link: The destination task cannot end as long as the source task is not ended.

Creating a link via a GanttLink variable Hide the details

GanttAddLink(<Link>)
<Link>: GanttLink variable
Name of the GanttLink variable describing the link to create.
Remarks
  • The function has no effect if the link already exists.
  • If one of the identifiers does not exist, the link is inactive: the link is not displayed and it has no effect.
  • According to their types, the links are drawn on the start or end borders of the tasks.
Related Examples:
The Gantt control Unit examples (WINDEV): The Gantt control
[ + ] Using a Gantt Chart control
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.
Component: wd260mdl.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment