PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Processes managed by default
  • Processes with procedures for a quick use
  • Advanced use of processes with procedure
  • Optional processes
  • Sort code of a column
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
Processes associated with a Gantt Chart column
Processes managed by default
WINDEV manages the following processes by default for a "Gantt Chart" column (in the order in which they appear in the code editor):
ProcessRuntime condition
InitializationRun when opening the window. *
Before creating the taskRun when selecting "New task" from the popup menu of the "Gantt Chart" column.
Enter in input in a taskRun when selecting "New task" from the popup menu of the "Gantt Chart" column. This process is run just after the "Before creating the task" process.
Exit from task inputRun during the exit from task input (exit when adding a task or when modifying a task via the popup menu for example).
Selecting a taskRun when selecting a task found in the "Gantt Chart" column. This process is run when opening the popup menu.
Moving a taskRun when moving a task in the "Gantt Chart" column (move performed with the mouse for example).
Resizing a taskRun when resizing a task in the "Gantt Chart" column (resize operation performed with the mouse for example).
Deleting a taskRun when selecting "Delete the task" from the popup menu of the "Gantt Chart" column.
After linking a prerequisite task to a taskRun once the link was created via the popup menu (select "Link a prerequisite task" and click the prerequisite task).
Modifying the progress of a taskRun when the user changes the cursor of the progression bar in the task.

(*) By default, the "Initializing" process of each control is run according to the creation order of controls in the window. To modify this runtime order:
  1. On the "Window" pane, in the "Order" group, click "Initialization".
  2. In the window that is displayed, use the arrows on the right to modify the initialization order of controls.

Processes with procedures for a quick use

Most of the processes associated with the "Gantt chart" column are run:
  • when using the popup menu of the "Gantt Chart" column.
  • when using the mouse.
To simplify the operations performed on the tasks, procedures are proposed in each process. These procedures take in parameter:
All the characteristics of the element handled by the popup menu or by the mouse are automatically assigned to this variable.
Example: To store a task added by the user via the popup menu in a "Task" data file, all you have to do is enter in the "Exit from task input" process:
PROCEDURE EnterInInput(gtEdited is GanttTask)

// Store the data
Task.Title = gtEdited..Title
Task.StartDate = gtEdited..StartDate
Task.EndDate = gtEdited..EndDate
...
HAdd(Task)

Advanced use of processes with procedure

You can also allow the user to define more precisely the characteristics of his task during an addition or a modification.
To do so, create a window with the information to specify.
In the code, all you have to do is open the window in the "Enter the task in input" process. To lock the direct input via the popup menu of the column, the process must return False.
This principle can be applied to all the processes called by the popup menu of the column.
Example:
PROCEDURE EnterInInput(gtEdited is GanttTask)

// Opens the window for task input
// with the selected task (in Creation or Modification mode)
Open(WIN_TaskInput, gtEdited)

// Returns False to lock the direct input in the column
RESULT False
Optional processes
Several optional processes can be managed.
To manage an optional process, all you have to do is select it in the icon bar of code window.
To add an optional process:
  1. Select the requested control.
  2. Display the code window of this control ([F2] key).
  3. Click the link "Add other processes to xxx" found at the end of window code, after the last process.
  4. All the optional processes available for the control are displayed.
  5. Check the optional process to add and validate.
    Note: You have the ability to select several optional processes.
  6. The selected optional process is automatically added into the processes managed by the control
To disable an optional process, perform the same operations to display the list of optional processes. Then, all you have to do is uncheck the optional processes to delete.
Note: If the disabled code contains WLanguage code, this code is automatically deleted.
You have the ability to manage:
  • the sort of columns ("Whenever a column is sorted" process). This process is run when the user sorts the column with and .
  • the use of magnifier to perform a search ("Whenever performing a search with the magnifier" process). This process is run during the search (for each character typed) from the "magnifier" search control.
  • The column resized by the user.

Sort code of a column

When the user clicks the title of a table column, the sort code of column is automatically called.
To find out the sort direction, declare a parameter at the beginning of the sort code.
// -- Whenever COL_Gantt is sorted
PROCEDURE Sort(bAscending)
Trace(bAscending? "Ascending column sort" ELSE "Descending sort")
Minimum required version
  • Version 19
Comments
Click [Add] to post a comment