PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Processes managed by default
  • Processes with procedures
  • Advanced use of processes with procedure
  • Optional processes
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 managed by default
WINDEV manages the following processes by default (in the order in which they appear in the code editor):
ProcessRuntime condition
InitializingRun when opening the window. *
Before creating the eventRun:
  • when "New event" is selected from the popup menu of TimeLine control.
  • during the direct input of a new event via the keyboard.
Entry in edit in an eventRun:
  • when "New event" is selected from the popup menu of TimeLine control.
  • during the direct input of a new event via the keyboard.
This process is run just after the "Before creating the event" process.
Exit from input for the eventRun during the exit from event input (exit when adding an event or when modifying an event via the popup menu for example).
Selecting an eventRun when selecting an event found in the TimeLine control.
Moving an eventRun when moving an event in the TimeLine control. During a move performed with the mouse, this process is run at the end of the move (on the "drop" of the mouse).
Resizing an eventRun when resizing an event in the TimeLine control (resize operation performed with the mouse for example). This process is run at the end of resize operation (on the "drop" of the mouse).
Deleting an eventRun:
  • when "Delete the event" is selected from the popup menu of TimeLine control.
  • when an event is deleted via the DEL key of keyboard.
Selecting a periodRun when selecting a time period in the TimeLine control (click performed on a time range for example). When several time ranges are selected with the mouse, the process is run for each new selected range.
Reassigning an eventRun when moving an event triggers the modification of the track associated with the event.
Whenever modifiedRun when moving the pager in the TimeLine control

(*) 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
To simplify the operations performed on the events found in a TimeLine control, procedures are proposed in each process. These procedures take in parameter the EventTimeline variable to use. All the details of the event handled by the popup menu are automatically assigned to this variable.
Example: To store in an EVT data file an event added by the user via the popup menu, all you have to do is enter in the "Exit from event input" process:
PROCEDURE ExitFromInput(evtModified is EventTimeline)

// Store the data
EVT.Title = evtModified..Title
EVT.EvtStart = evtModified..Start
EVT.EvtDate = evtModified..End
...
HAdd(EVT)

Advanced use of processes with procedure

You can also allow the user to define more precisely the characteristics of his event 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 event in input" process. To lock the direct input via the popup menu of the TimeLine control, the process must return False.
This principle can be applied to all the processes called via the popup menu of the TimeLine control.
Example:
PROCEDURE Edit(evtEdited is EventTimeline)

// Opens the window for entering an event
// with the selected event (in Creation or Modification mode)
Open(WIN_InputEVT_HFSQL, evtEdited)

// Returns False to lock the direct input in the TimeLine control
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 control rollover with the mouse,
  • the left mouse button down, up, with a double click,
  • the right mouse button down, up, with double click,
  • the mouse wheel, ...
See Optional processes for more details.
Minimum required version
  • Version 18
Comments
Click [Add] to post a comment