ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

  • Example for the GanttListTask function
GanttListTask (Example)
Example for the GanttListTask function
The following example allows you to retrieve a task when it is hovered over, using the Mouse hover code (WM_MOUSEMOVE) on the Table control.
arrList is array of GanttTask
sMyColumn is string
 
// Retrieve the name of the hovered column
sMyColumn = TableInfoXY(TABLE_Gantt, tiColName, MouseXPos(), MouseYPos())
IF {sMyColumn}..Type = typGantt THEN
 
// Retrieves the list of tasks
arrList = GanttListTask(COL_Gantt, ganttHoveredTask)
IF arrList.Occurrence = 1 THEN
Trace("Hovered task: " + arrList[1].Title)
END
END
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment