AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Diagrama de Gantt
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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"
COL_Gantt.AjouteLien(t1.ID, t2.ID)

// Autre syntaxe en spécifiant le type du lien
COL_Gantt.AjouteLien(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
COL_Gantt.AjouteLien(Lien)
Syntax

Creating a link between two existing tasks Hide the details

<Gantt column>.GanttAddLink(<Source Task identifier> , <Destination Task identifier> [, <Type of link>])
<Gantt column>: Control name
Name of the Gantt Chart column (in a Table or TreeView Table control) to be used.
<Source Task identifier>: Character string
Identifier of the source task of the link.
<Destination Task identifier>: Character string
Identifier of the target task of the link.
<Type of link>: Integer constant
Type of link to add:
gltEndToEnd"End-to-End" link: The destination task cannot finish before the source task is completed.
gltEndToStart
(default value)
"Finish-to-Start" link: The destination task cannot start until the source task is completed.
gltStartToEndLink of type "Start to Finish": The destination task cannot be completed before the source task has started (rare case).
gltStartToStart"Start-to-Start" link: The destination task cannot start before the source task has started.

Creating a link via a GanttLink variable Hide the details

GanttAddLink(<Gantt column> , <Link>)
<Gantt column>: Control name
Name of the Gantt Chart column (in a Table or TreeView Table control) to be used.
<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 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: wd300mdl.dll
Versión mínima requerida
  • Versión 26
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 25/09/2024

Señalar un error o enviar una sugerencia | Ayuda local