PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Processes managed by default (window control)
  • Processes with procedures for a quick use
  • 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 (window control)
Versions 18 and later
WEBDEV - Server code The Organizer controls are now available for the WEBDEV sites (in Windows and Linux).
PHP The Organizer controls are now available for the PHP sites.
New in version 18
WEBDEV - Server code The Organizer controls are now available for the WEBDEV sites (in Windows and Linux).
PHP The Organizer controls are now available for the PHP sites.
WEBDEV - Server code The Organizer controls are now available for the WEBDEV sites (in Windows and Linux).
PHP The Organizer controls are now available for the PHP sites.
WINDEV 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 appointmentRun when selecting "New appointment" in the popup menu of Organizer control.
Entry in edit in an appointmentRun when selecting "New appointment" in the popup menu of Organizer control. This process is run just after the "Before creating the appointment" process.
Exit from input for the appointmentRun during the exit from appointment input (exit when adding an appointment or when modifying an appointment via the popup menu for example).
Selecting an appointmentRun when selecting an existing appointment in the Organizer control. This process is run when opening the popup menu.
Moving an appointmentRun when moving an appointment in the Organizer control (move performed with the mouse for example).
Resizing an appointmentRun when resizing an appointment in the Organizer control (resize operation performed with the mouse for example).
Deleting an appointmentRun when selecting "Delete the appointment" from the popup menu of Organizer control.
Selecting a periodRun when selecting a time range in the Organizer control.
Whenever changing periodRun when modifying the period displayed in the Organizer control.
Versions 17 and later
Whenever changing the display mode
New in version 17
Whenever changing the display mode
Whenever changing the display mode
Run when the user changes the display mode of Organizer control. The new mode can be known in this process via OrganizerMode.

(*) 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. Select "Windows .. Edit the initialization order".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.
WEBDEV - Server codeWEBDEV - Browser codePHP WEBDEV manages the following processes by default (in the order in which they appear in the code editor):
ProcessRuntime condition
Initialization (server code)Run when opening the page.
Moving an appointment (server code)Run when moving an appointment in the Organizer control (move performed with the mouse for example).
Resizing an appointment (server code)Run when resizing an appointment in the Organizer control (resize operation performed with the mouse for example).
Deleting an appointment (an appointment)Run during the click on the cross found at the top right of selected appointment.
Before creating the appointment (server code)Run when creating an appointment with the mouse (before the input performed by the user).
Exit from appointment input (server code)Run when exiting from the appointment in input.
Whenever the period changes (server code)Run when modifying the period displayed in the Organizer control.
Selecting an appointment (browser code)Run when selecting an existing appointment in the Organizer control. This process is run during the click on an appointment.
Moving an appointment (browser code)Run when moving an appointment in the Organizer control (move performed with the mouse for example).
Resizing an appointment (browser code)Run when resizing an appointment in the Organizer control (resize operation performed with the mouse for example).
Selecting a period (browser code)Run when selecting a time range in the Organizer control.
Deleting an appointment (browser code)Run during the click on the cross found at the top right of selected appointment.
Before creating the appointment (browser code)Run when creating an appointment with the mouse (before the input performed by the user).
Enter an appointment in input (browser code)Run when selecting "New appointment" in the popup menu of Organizer control. This process is run just after the "Before creating the appointment" process.
Exit from appointment input (browser code)Run when exiting from the appointment in input.
Whenever changing period (browser code)Run when modifying the period displayed in the Organizer control.

Processes with procedures for a quick use

Most of the processes associated with the Organizer control are run:
  • WINDEV when using the popup menu of the Organizer control.
  • when using the mouse.
  • WEBDEV - Server codePHP when using the deletion cross.
To simplify the operations performed on the appointments found in an Organizer control, procedures are proposed in each process. These procedures take in parameter the appointment variable (Appointment variable) to use. All the characteristics of the appointment handled by the popup menu or by the mouse are automatically assigned to this variable.
WINDEV Example: To store in an APT data file an appointment added by the user via the popup menu, all you have to do is enter in the "Enter the appointment in input" process:
PROCEDURE Edit(aptEdited is Appointment)

// Store the data
APT.Title = aptEdited..Title
APT.StartDate = aptEdited..StartDate
APT.EndDate = aptEdited..EndDate
...
HAdd(APT)

Advanced use of processes with procedure

You can also allow the user to define more precisely the characteristics of his appointment during an addition or a modification.
WINDEV 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 appointment in input" process. To lock the direct input via the popup menu of the Organizer control, the process must return False.
This principle can be applied to all the processes called by the popup menu of Organizer control.
Example:
PROCEDURE Edit(aptEdited is Appointment)

// Opens the window for entering an appointment
// with the selected appointment (in Creation or Modification mode)
Open(WIN_InputAPT_HFSQL, aptEdited)

// Returns False to lock the direct input in the Organizer control
RESULT False
WEBDEV - Server codeWEBDEV - Browser codePHP To do so, create a popup with the information to fill.
In the code, all you have to do is open the popup in the "Enter the appointment in input" browser process.
Example:
PROCEDURE EnterInInput(aptEdited is Appointment)

// Open the edit popup
POPUP_Modification.EDT_Title = aptEdited.Title
POPUP_Modification.EDT_Content = aptEdited.Content

IF aptEdited.Category = "Personal" THEN
POPUP_Modification.COMBO_Category = 1
ELSE
POPUP_Modification.COMBO_Category = 2
END

IF aptEdited.ID = 0 THEN
POPUP_Modification.BTN_Delete..Visible = False
END

PopupDisplay(POPUP_Modification)
Optional processes
WINDEV 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 the Optional processes for more details.
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment