PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Overview
  • Setting
  • Configuring the automatic menu in a Gantt Chart control
  • Printing a Gantt chart
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
Popup menu of Gantt Chart controls (AAF)
Overview
Each Gantt Chart control found in a window proposes a menu to the user.
This menu, available without programming, proposes several actions:
  • Modify the duration of a task,
  • Delete tasks,
  • Add tasks,
  • Link tasks,
  • Print the Gantt chart.
Note: You have the ability to add choices to this menu by programming. To do so, use ..PopupMenu.
Setting

Configuring the automatic menu in a Gantt Chart control

The popup menu of the Gantt Chart control can be disabled. To configure the display of the popup menu associated with the Gantt Chart control, you must:
  1. Display the description window of Table or TreeView Table control.
  2. Select the "Gantt chart" column.
  3. Select the "GUI" tab.
  4. Choose the requested menu in the "Popup Menu" combo box. You can:
    • "Display the menu of AAF (System)": In this case, the automatic menu of the Gantt Chart control will be displayed. See Configuring the menu of AAFs for more details.
    • "Add a popup menu": If this option is checked, you will have the ability to select the custom popup menu to display.
Notes:
  • If both options are checked, the custom popup menu can be added before or after the menu of AAFs.
  • If no option is selected, no popup menu will be selected. The <Disabled> option will be displayed in the description window.
  • ..PopupMenu can also be used to delete the popup menu specific to the AAFs and to go back to the standard Windows menu for a specific control.
  • By programming, DisableAAF is used to delete some options from the popup menu of AAFs specific to the Gantt Chart controls. Different constants can be used according to the option to disable: By programming, AAFDisable (or DisableAAF) is used to delete some options from the popup menu of AAFs specific to the Gantt Chart controls. Different constants can be used according to the option to disable:
    • aafGanttAddDependency: used to disable:
      • the addition of a prerequisite task,
      • the deletion of all the prerequisite tasks.
    • aafGanttAddTask: used to disable the addition of a task.
    • aafGanttEditTask: used to disable the edit of a task.
    • aafGanttDeleteTask: used to disable the deletion of a task.
    • aafPrintReportOnTable: used to disable the print of the Gantt chart.
Printing a Gantt chart
The "Print" option is used to print the content of the Gantt Chart column.
The characteristics of the print are as follows:
  • The title of the print corresponds to the caption of the Table or TreeView control that displays the Gantt Chart control. If no caption was specified, the report displays no title.
  • The print respects the color used in the Gantt Chart control.
  • The date of the day is printed in the top right corner.
  • The number of the current page and the total number of pages are printed in the bottom right corner.
  • The print takes into account the writing direction specified by ..TextDirection for the window and/or for the Gantt Chart control.
Notes:
  • The "Print" option found in the popup menu of the Gantt Chart columns requires to provide the print libraries of the WINDEV framework with the executable.
  • To avoid proposing the "Print" option in the popup menu of the Gantt Chart control, use DisableAAF associated with the aafPrintReportOnTable constant.To avoid proposing the "Print" option in the popup menu of the Gantt Chart control, use AAFDisable (or DisableAAF) associated with the aafPrintReportOnTable constant.
  • To customize the report associated with a specific Gantt Chart control, you must create a new Gantt Chart report based on this Gantt Chart control. This report will be automatically associated with the Gantt Chart control and it will be printed via the "Print" option. See Gantt Chart report for more details.
Minimum required version
  • Version 19
Comments
Click [Add] to post a comment